GetChildren (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
better example
>Camoy
Redirecting to GetChildren (Method)
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 i = 1, #children do
  if children[i]:IsA( "BasePart" ) then
      children[i].Color = Color3.new( 1, 0, 0 )
  end
end
</pre>
}}
 
==See Also==
 
*[[Tables]]

Revision as of 12:31, 18 January 2011