mirror of
https://github.com/lune-org/lune.git
synced 2024-12-14 22:51:05 +00:00
35 lines
593 B
Lua
35 lines
593 B
Lua
local roblox = require("@lune/roblox") :: any
|
|
local Instance = roblox.Instance
|
|
|
|
local root = Instance.new("Folder")
|
|
local child = Instance.new("Model")
|
|
local descendant = Instance.new("Part")
|
|
|
|
child.Parent = root
|
|
descendant.Parent = child
|
|
|
|
root:Destroy()
|
|
|
|
assert(not pcall(function()
|
|
return root.Name
|
|
end))
|
|
|
|
assert(not pcall(function()
|
|
return root.Parent
|
|
end))
|
|
|
|
assert(not pcall(function()
|
|
return child.Name
|
|
end))
|
|
|
|
assert(not pcall(function()
|
|
return child.Parent
|
|
end))
|
|
|
|
assert(not pcall(function()
|
|
return descendant.Name
|
|
end))
|
|
|
|
assert(not pcall(function()
|
|
return descendant.Parent
|
|
end))
|