Another tip about rotations in general that’s especially important when you use minAngle and maxAngle.
Because of the way euler rotations work, you are going to get much nicer looking values if your rotation axis is the YAxis(0,1,0) or ZAxis (0,0,1) than if it is the XAxis(1,0,0).
Check out this world here:
RotateAxis_YZ_BetterThan_X.rbxl (54.5 KB)
It has 3 boxes. The Red rotates about a pivot using Axis = XAxis.
watch the DragFrame.Orientation value when you rotate it and you’ll see that the Y and Z values change in funny ways. Sometimes they are 0, other times 180. This is because when you extract euler rotations from a matrix, the order of which is YXZ, when the middle value is X there are more than one ‘answer’ sometimes.
On the other hand, try the Green or Blue boxes which rotate about Y and Z, and watch the DragFrame.Orientation of THOSE values when you rotate. They are nice and clean, just one changing value and the others remain at 0. This is going to be much easier to work with, and easier to understand when you want o use minAngle and maxAngle.