<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=GetChildren_%28Function%29</id>
	<title>GetChildren (Function) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=GetChildren_%28Function%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=GetChildren_(Function)&amp;action=history"/>
	<updated>2026-07-28T18:00:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.starfall.wtf/index.php?title=GetChildren_(Function)&amp;diff=564&amp;oldid=prev</id>
		<title>PRG: Created page with &quot;{| |&lt;onlyinclude&gt; {{Function| name                  = GetChildren |arguments            =  |returns              = Table &#039;&#039;children&#039;&#039; |description          = 	Returns a read-only table of this Object&#039;s children |object               = Global |}}&lt;/onlyinclude&gt; |}  ==Example==  (Simple example)   &lt;pre&gt;  local children = game.Workspace:GetChildren() for c = 1, #children do     print(children[c].Name) end  &lt;/pre&gt;  (More efficient example)   &lt;pre&gt; local children = game.Wo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=GetChildren_(Function)&amp;diff=564&amp;oldid=prev"/>
		<updated>2024-12-11T10:33:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| |&amp;lt;onlyinclude&amp;gt; {{Function| name                  = GetChildren |arguments            =  |returns              = &lt;a href=&quot;/index.php/Table&quot; class=&quot;mw-redirect&quot; title=&quot;Table&quot;&gt;Table&lt;/a&gt; &amp;#039;&amp;#039;children&amp;#039;&amp;#039; |description          = 	Returns a read-only table of this Object&amp;#039;s children |object               = Global |}}&amp;lt;/onlyinclude&amp;gt; |}  ==Example==  (Simple example)   &amp;lt;pre&amp;gt;  local children = game.Workspace:GetChildren() for c = 1, #children do     print(children[c].Name) end  &amp;lt;/pre&amp;gt;  (More efficient example)   &amp;lt;pre&amp;gt; local children = game.Wo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{|&lt;br /&gt;
|&amp;lt;onlyinclude&amp;gt;&lt;br /&gt;
{{Function|&lt;br /&gt;
name                  = GetChildren&lt;br /&gt;
|arguments            = &lt;br /&gt;
|returns              = [[Table]] &amp;#039;&amp;#039;children&amp;#039;&amp;#039;&lt;br /&gt;
|description          = 	Returns a read-only table of this Object&amp;#039;s children&lt;br /&gt;
|object               = Global&lt;br /&gt;
|}}&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
(Simple example) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
local children = game.Workspace:GetChildren()&lt;br /&gt;
for c = 1, #children do&lt;br /&gt;
    print(children[c].Name)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(More efficient example) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local children = game.Workspace:GetChildren()&lt;br /&gt;
for i, j in ipairs(children) do&lt;br /&gt;
    print(&amp;quot;index: &amp;quot;)  --j is the object, i is the index of the table it is at&lt;br /&gt;
    print(i)&lt;br /&gt;
    print(&amp;quot;Object: &amp;quot;)&lt;br /&gt;
    print(j)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Functions]]&lt;/div&gt;</summary>
		<author><name>PRG</name></author>
	</entry>
</feed>