GetChildren (Method)

From Legacy Roblox Wiki
Revision as of 06:55, 15 February 2012 by >JulienDethurens
Jump to navigationJump to search
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