From what I've seen, yes. Yes they are. And it's ANNOYING. Example:
1 | for i,thing in pairs (model:GetChildren()) |
2 | print (thing.Name) |
3 | end |
Lets say the model im scanning is this:
1 | Model: |
2 | Humanoid |
3 | ParticleEmitter |
4 | Trail |
5 | Part 1 |
6 | Part 2 |
What the code returns:
1 | Part 1 |
2 | Part 2 |
3 | Humanoid |
4 | ParticleEmitter |
Is this true and if so is there any way to fix this? Edit: Look in the answers to see the rest of what i said. Or just tell me how to exclude parts from shirts and pants on them. Id like that too :D
I mean... just use ipairs() insead of pairs()
Also, this really shouldn’t be a problem.
1 | for i, thing in ipairs (model:GetChildren()) do |
2 | print (thing.Name) |
3 | end |
I’m not entirely sure what you want, but that should return the model children in the same order every time... so yeah :)
Well, tried that. The real reason i need this is so that i can edit the player character and the parts always show last in the explorer and first in the list. Here is what the explorer window looks like: Image.
If you want to do only a certain type do
1 | IsA( "type of thing here" ) |