How do you prevent a part from rotating in a specific axis?
BodyGyro is the easiest way if the part is unanchored.
There’s RotVelocity and body gyros that can help with this problem.
You need to go into more detail about what you are trying to accomplish.
How are you rotating the object?
Why are you rotating it?
Does anything else affect the rotation?
Do players need to be able to hop on and off the object because this could affect the physics of the player’s avatar too.
Is it Anchored or not?
Well I’m trying to make like a geometry dash game in roblox (if you don’t know that game search it up so you know what I’m talking about). I have a square part that acts as the character but since it is a 2d game it should only be able to rotate left to right and not backwards and forwards and the part is not anchored.