Glorpia Docs
Instances / Base class

Instance

The base hierarchy class shared by Glorpia objects that appear in the instance tree.

Properties

NameTypeDescription
NamestringThe instance name used in Explorer and hierarchy lookup.
ClassNamestringThe concrete class name of the instance.
ParentInstance or nilThe instance that contains this object in the hierarchy.

Hierarchy methods

NameTypeDescription
FindFirstChild(name, recursive?)methodFinds a child by name, optionally searching descendants.
WaitForChild(name, timeout?)methodWaits for a named child and returns it when available.
FindFirstChildOfClass(className)methodFinds the first direct child with the exact ClassName.
FindFirstChildWhichIsA(className, recursive?)methodFinds the first child compatible with a class, optionally recursively.
Clone()methodCreates a copy of the instance and its supported descendants.
GetChildren()methodReturns direct children.
GetDescendants()methodReturns descendants recursively.
IsA(className)methodChecks whether the instance is compatible with a class name.
GetFullName()methodReturns the hierarchy path for the instance.
Destroy()methodRemoves the instance and its descendants from the hierarchy.
Concrete classes add their own properties, methods and events on top of this shared hierarchy API.

Any existing Instance can contain other Instances. This includes classes such as Camera, Humanoid, Player, BasePart and ValueBase descendants; parenting is not limited to Model and Folder containers.

Rendering and world physics are based on ancestry rather than the immediate parent class. A Part at any depth below Workspace is part of the rendered world. A Part stored below Players, Lighting or ReplicatedStorage is replicated as hierarchy data but is not rendered or simulated until it becomes a Workspace descendant.

Class reference