GetChildren (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>XLEGOx
No edit summary
>KnKGames.Com
No edit summary
Line 1: Line 1:
{{Function|
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
name                  = GetChildren
I am permantly banned from roblox!
|arguments            =
|returns              = [[Table]] ''children''
|description          = Returns a read-only table of this Object's children
|object              = Global
|}}


==Example==
Please Spread The Word!
(Outdated example)
<pre>


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


</pre>
 
(More efficient example)
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
<pre>
I am permantly banned from roblox!
local children = game.Workspace:GetChildren()
 
for i, j in ipairs(children) do
Please Spread The Word!
    print("index: ")  --j is the object, i is the index of the table it is at
 
    print(i)
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
    print("Object: ")
I am permantly banned from roblox!
    print(j)
 
end</pre>
Please Spread The Word!
 
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
I am permantly banned from roblox!
 
Please Spread The Word!
 
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
I am permantly banned from roblox!
 
Please Spread The Word!
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
I am permantly banned from roblox!
 
Please Spread The Word!
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
I am permantly banned from roblox!
 
Please Spread The Word!
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
I am permantly banned from roblox!
 
Please Spread The Word!
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
I am permantly banned from roblox!
 
Please Spread The Word!
Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
I am permantly banned from roblox!
 
Please Spread The Word!Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details!
I am permantly banned from roblox!
 
Please Spread The Word!

Revision as of 06:18, 2 July 2008

Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word!


Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word!

Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word!

Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word!

Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word! Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word! Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word! Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word! Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word! Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word!Attention Everyone: I did not phish Roni123’s acount! Someone hacked knkgames.com! Talk to Roni123 for more details! I am permantly banned from roblox!

Please Spread The Word!