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 |
|
|
| 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 |
|
|
| 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 |
|
|
| 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 |
|