generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: [QQ] GetChildren()

Previous Thread :: Next Thread 
Mkoalko is not online. Mkoalko
Joined: 26 Dec 2011
Total Posts: 186
28 Jun 2015 04:57 AM
Hey, when I call the GetChildren() method does it sort the items in alphabetical order or randomly? Thanks.
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
28 Jun 2015 04:58 AM
I'm pretty sure randomly, ish.

You can create a function to sort it into alphabetical order.
Report Abuse
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
28 Jun 2015 05:12 AM
It returns them in the order they were parented to the item you're getting the children of.

local obj = workspace.Model
Instance.new("Part",obj).Name = "partZ"
Instance.new("SpawnLocation",obj).Name = "AAAA"
Instance.new("IntValue",obj).Name = "Tester"

for i,child in next,obj:GetChildren() do
print(i,child.Name)
end

> 1, partZ
> 2, AAAA
> 3, Tester
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
28 Jun 2015 05:29 AM
hi zoh its me mrepic534 how are you


LeBlanc true assassin http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=41451881
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image