GetChildren (Function)

From Legacy Roblox Wiki
Revision as of 23:02, 24 October 2010 by >Anaminus
Jump to navigationJump to search
GetChildren( )
Returns Table children
Description: Returns a read-only table of this Object's children

Description

Example
local children = game.Workspace:GetChildren()
for num, child in pairs(children) do    -- pairs iterates through a table
    print(num, child.Name)
end


See Also