getchildren
Returns an Instance's children. It calls object:GetChildren().
Syntax
getchildren(object: Instance) -> {Instance}
Parameters
| Parameter | Type | Description |
|---|---|---|
object | Instance | The parent. |
Returns
| Type | Description |
|---|---|
{Instance} | The object's direct children. |
Example
print(#getchildren(workspace))
These are Game executor contracts. Check build requirements and session lifetimes before using them.
