How to keep parts, that have been rotated, kept at its original orientation of (0, 0, 0)?

I made a model that consists of a few parts. However, when I’m moving the individual parts, all the parts move in different directions (due to different orientations).

For example:

for _, v in ipairs(game:WaitForChild("testModel"):GetChildren()) do
    v.CFrame *= CFrame.new(5, 0, 0)
end

Some parts will move the 5 studs on the x-axis (the right way) and other parts will move 5 studs on the x-axis (the opposite way).

Any clue on how to work around this?

1 Like

So do you want to move the whole model? You can use :PivotTo() on the model.

1 Like

Any way to move the model besides using :PivotTo() using the for-loop I have above?

1 Like

There is :SetPrimaryPartCFrame but that is superseded by :PivotTo

1 Like

Best solution is PivotTo as it moves all object relative to the primary part of the model.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.