GetChildren (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens Did some small changes. |
>JulienDethurens Did some small changes. |
(No difference)
|
Revision as of 02:57, 18 January 2012
![]() | |
Returns | Table children |
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