Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Model with 60+s Parts named Part, need to be sorted out, in number-order. help?

Asked by 3 years ago

Howdy!

I know this site is not meant to ask someone to write a script for someone, but i hope this is a one time question.

I got a model with over 60 Parts inside it, and all of them are named 'Part'

But for my CFrame:lerp i need to move the object from Part 1 to 2, to 3, to 4.

And i've got a script for that, no worries. But how can i quickly number all parts? And, also in the sequence

So, Part 1 = the begin, Part 2 is next to, Part 3 next to it.

Only thing i could write was a script which sorts them, but Part 1 could be like Part 30, instead of Part 1, if you get what i mean.

Does anyone knows a script, or can lead me into the good directions?

2 answers

Log in to vote
0
Answered by 3 years ago

You could get a plugin for 120 robux i forgot the name but it is something like 'InCommand' or otherwise there is no other way that will do it fast, it will just take a while

0
InCommand is a upgraded command mar but you can make a script that automatically names them. the best part is you can save that script and add it in again for another use adieking1 69 — 3y
0
Command Bar** adieking1 69 — 3y
0
I just checked, It is called InCommand adieking1 69 — 3y
0
I’ve purchased it. Haven’t been able to look at it because ik not home. Is there a special command to sort them out or something? HeadlessDeathSpeaker 9 — 3y
Ad
Log in to vote
0
Answered by 3 years ago
local modelParts = model:GetChildren()
for i = 1, #modelParts do
    modelParts[i].Name = i
end
0
Nope. Because now it randomly picks a part. And not in order from 1 to 60. HeadlessDeathSpeaker 9 — 3y

Answer this question