GetChildren (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
No edit summary
>JulienDethurens
No edit summary
(No difference)

Revision as of 06:55, 15 February 2012

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