GetChildren (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus
No edit summary
>Camoy
Redirecting to GetChildren (Method)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|
#REDIRECT [[GetChildren_(Method)]]
|<onlyinclude>{{Function|
name                  = GetChildren
|arguments            =
|returns              = [[Table]] ''children''
|description          = Returns a read-only table of this Object's children
|object              = [[Instance]]
|}}</onlyinclude>
|}
 
==Description==
{{Example|
<pre>
local children = game.Workspace:GetChildren()
for num, child in pairs(children) do    -- pairs iterates through a table
    print(num, child.Name)
end
</pre>
}}
 
==See Also==
 
*[[Tables]]

Latest revision as of 12:31, 18 January 2011