mirror of
https://github.com/lune-org/lune.git
synced 2024-12-14 22:51:05 +00:00
12 lines
413 B
Lua
12 lines
413 B
Lua
|
local roblox = require("@lune/roblox") :: any
|
||
|
|
||
|
local model =
|
||
|
roblox.readModelFile("tests/roblox/rbx-test-files/models/three-nested-folders/binary.rbxm")[1]
|
||
|
|
||
|
local child = model:FindFirstChild("Parent")
|
||
|
local descendant = child:FindFirstChild("Child")
|
||
|
|
||
|
assert(descendant:GetFullName() == "Grandparent.Parent.Child")
|
||
|
assert(child:GetFullName() == "Grandparent.Parent")
|
||
|
assert(model:GetFullName() == "Grandparent")
|