Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I move every part of a model at once?

I want to move all the parts in a model, but I want to be able to do it without making 16 scripts with basically the same content. How do I do that?

1 answer

✓ Accepted answer

You can use either the MoveTo() function or the SetPrimaryPartCFrame() function.

model:MoveTo(Vector3.new(50,0,50))
model:SetPrimaryPartCFrame(CFrame.new(50,0,50))

Keep in mind that the SetPrimaryPartCFrame() functions requires the model to have a primaryPart.

3 comments

0

How do I set the primary part

0

Set it under the properties tab

0

ok, thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.