GetChildren (Method)
From Legacy Roblox Wiki
GetChildren( ) | |
Returns | table |
Description: | Returns a read-only table of the object's children. |
Member of: | Instance |
Example
{{{1}}}
Example
It is highly recommended to use GetChildren with a generic for loop.
for index, child in pairs(Workspace:GetChildren()) do
print("Index: ", index)
print("Child: ", child)
end