local template = world.FindFirstChild("CoinTemplate")
if template:
local coin = template.Clone()
coin.Position = new Vector3(0, 5, 0)
coin.Parent = world
Instance
Inherits: TruWorldsObject
Not creatable
This class cannot be created with the
new keyword.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)
Destroy()
local part = new Part()
part.Parent = world
wait(5)
part.Destroy()
DestroyAfter(delaySeconds: number)
DetachCoreScript(path: string)
DetachScript(path: string)
local door = world.FindFirstChild("Door")
if door:
door.Visible = false
local folder = world.FindFirstChild("Coins")
if folder:
for child in folder.GetChildren():
child.Color = new Color3(1, 1, 0)
GetScriptCount() Returns number
GetScriptPath(index: number) Returns string
IsDescendantOfClass(className: string) Returns boolean
MoveAfter(sibling: Instance)
MoveBefore(sibling: Instance)
Signals
Properties
ClassName string read-only
Functions
IsA(className: string) Returns boolean
Signals
Changed string