TruWorlds

Instance

Inherits: TruWorldsObject

Properties

Archivable boolean
IsInDataModel boolean read-only
IsInWorld boolean read-only
Locked boolean
Name string
Parent Instance?
SortIndex number read-only

Functions

AttachCoreScript(path: string)
AttachScript(path: string)
Clone() Returns Instance
local template = world.FindFirstChild("CoinTemplate")
if template:
    local coin = template.Clone()
    coin.Position = new Vector3(0, 5, 0)
    coin.Parent = world
Destroy()
local part = new Part()
part.Parent = world
wait(5)
part.Destroy()
DestroyAfter(delaySeconds: number)
DetachCoreScript(path: string)
DetachScript(path: string)
FindFirstChild(name: string) Returns Instance?
local door = world.FindFirstChild("Door")
if door:
    door.Visible = false
GetChildren() Returns Instance[]
local folder = world.FindFirstChild("Coins")
if folder:
    for child in folder.GetChildren():
        child.Color = new Color3(1, 1, 0)
GetContentsGlobalBoundsBox() Returns BoundsBox?
GetDescendants() Returns Instance[]
GetScriptCount() Returns number
GetScriptPath(index: number) Returns string
IsAncestorOf(descendant: Instance) Returns boolean
IsDescendantOf(ancestor: Instance) Returns boolean
IsDescendantOfClass(className: string) Returns boolean
MoveAfter(sibling: Instance)
MoveBefore(sibling: Instance)
WaitForChild(childName: string, timeout: number = 10) Returns Instance yields
WaitForChildren(childNames: string[], timeout: number = 10) Returns Instance[] yields

Signals

ChildAdded Instance
ChildRemoved Instance
DescendantAdded Instance
DescendantRemoving Instance
Destroyed
ParentChanged Instance?
Removed
SortIndexChanged number