mirror of
https://github.com/lune-org/lune.git
synced 2024-12-13 13:30:38 +00:00
11 lines
413 B
Lua
11 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")
|