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 all parts in a model?

So, the title says it all... How could I move all parts in a model?.. So I mean.. How do I move a whole model?..

3 answers

✓ Accepted answer

There's this dandy thing called SetPrimaryPartCFrame

but your model needs a primary part to be able to move.

Here's an example

script.Parent.PrimaryPart = script.Parent.PPart

script.Parent:SetPrimaryPartCFrame(cframe)

7 comments

0

So, then I simply change the position of that primary part?...

0

?

0

no, you use the method, the parameter is where you put the position.

0

I dun understand that script.. D: So lets use and example, theres a part in a model named Part3, how would I set the part?.....

0

the same way I set PPart as the Primary Part.

0

Do not forget; There is also the 'MoveTo' method.

0

:(

It does not look like this was solved so I suggest doing this:

for i = 1,10 do
for i,v in pairs(model:children()) do
v.CFrame = v.CFrame * CFrame.new(0,0.5,0)
end
wait()
end

This would move the whole model 5 studs upwards. Sorry for my bad use if tabbing and bad use of naming things, I am on my iPad

If you still haven't solved your problem, you could go into build mode and use the tools there. The tool with a + on it was made with that kind of move tool built into it I think. Thank Roblox e.e

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