Rotating an entire model

Let’s keep it simple and clear. I have a model which contains a few parts(the model is anchored), I want to rotate it to character’s humanoid root part orientation. Thanks for help!

You can use model:PivotTo(Your characters Orientation).

1 Like

It’s really working now! But I have other issue. I built the model in a wrong order so it’s upside down. What should I do?

You can change the Primary parts orientation so that when it is at the orientation you want it will be upright if you do have a primary part but if you dont you set the primary part in the properties.

2 Likes

just offset the cframe youre passing in the PivotTo() argument, or as @labra_doodle12 said, offset the primary parts orientation.

1 Like

It’s working perfectly. Thank you so much!

1 Like

Your welcome, have a good day.

1 Like

Thanks, you too have a good day.

1 Like

One last question, how can I assign Look Vector to a model position?(Im using model:MoveTo())

You don’t. model:MoveTo() takes a Vector3, which does not have rotation axes. Just use model:PivotTo(), it’s much better.

If you really need to move the PrimaryPart and not the pivot, use model:SetPrimaryPartCFrame(), which takes a CFrame which does have rotation axes.

3 Likes

You can use PivotTo() like @Fizzitix said. Something like

PivotTo(CFrame.new(Vector3.new(values), Vector3.new(Your lookVector values)))

And I think that would work.

1 Like

Thank you for help. It’s working!

3 Likes

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