GetChildren (Function): Difference between revisions

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

Revision as of 23:02, 24 October 2010

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