GetChildren (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
No edit summary
>PilotLuke
No edit summary
Line 6: Line 6:
|object              = Global
|object              = Global
|}}
|}}
==Example==
<pre>
local children = game.Workspace:GetChildren()
for c = 1, #children do
print(c.Name)
end
</pre>

Revision as of 20:29, 12 March 2008

GetChildren( )
Returns Table children
Description: Returns a read-only table of this Object's children

Example


local children = game.Workspace:GetChildren()
for c = 1, #children do
print(c.Name)
end