2023-05-20 18:49:37 +01:00
|
|
|
local roblox = require("@lune/roblox")
|
2023-03-25 16:26:16 +00:00
|
|
|
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))
|