GetChildren (Function)

From Legacy Roblox Wiki
Revision as of 21:45, 27 December 2010 by >ArceusInator (better example)
Jump to navigationJump to search
GetChildren( )
Returns Table children
Description: Returns a read-only table of this Object's children

Description

Example
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


See Also