How to get the rotation/degrees of a model?

Hey, so I’m trying to use code to rotate this model I have so it’s straight, but the problem is I don’t know exactly at what degree it’s rotated at currently, so I don’t know how many degrees it needs to be rotated in order to cancel out to have no rotation at all.

Is this possible? Thanks :slight_smile:

i don’t know what code you are specifically working with but you could probably use the CFrame returned from Model:GetBoundingBox to get the current rotation of the model.

1 Like

When I want to move models I use PrimaryPart, which I usually set to a central/largeish part

Then from there you can do

local Rotation = Model.PrimaryPart.Orientation
3 Likes

Moving a model like that is not always the best.
Using “:PivotTo(…)” or “:MoveTo(…)” could work better.
(sorry for late response)