GetChildren (Function): Difference between revisions

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

Latest revision as of 12:31, 18 January 2011