Rotate script rotates more than 90°

I’m working on a placement system, and I need it to rotate 90 degrees. But whenever I decide to rotate it it seems to rotate more than 90 degrees.
As seen here.
image
I’ve tried using Orientation but that’s too limited and only works on the Y and Z axis.

Here is my code that I’m using to rotate it.

local rotateTween = TweenService:Create(workspace.Selection, tweenInfo, {CFrame = workspace.Selection.CFrame * CFrame.fromEulerAnglesXYZ(0,90,0)})
rotateTween:Play()

yah

CFrame.fromEulerAnglesXYZ() takes angles in radians. To rotate 90 degrees you would change it to CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0).

2 Likes

Wait so what is the difference between radians and degrees?

Radians and degrees are two ways to measure angles.

1 Like

Radians and degrees are units of Orientation/Rotation.
Radians
Degrees

1 Like

2pi radians is a full revolution around any axis (360 degrees), 1pi radians is half of this (180 degrees) etc. It’s just a slightly different way of measuring angles (think Celsius and Fahrenheit).