Cant stop object/ridgidbody from rotating

I’ve tried using ridgidbody.rotation = Vector3 and Quaternion, and also ridgidbody.rotate(Vector3), But I can not stop it from rotating, with ridgidbody.rotation it rotates less, but it still won’t stop rotating.

@Epicbrony

Make it kinematic. There is an option under the rigid body component for that. Or there is a drop down on the Rigidbody component at the very bottom that allow you to lock rotation on certain axes

You have not explained how you are trying to use the rigidbody, which would be essential to answer your question. I can only assume you’re trying to lock its rotation while still being able to have physics applied to it, in which case you need this:

https://docs.unity3d.com/ScriptReference/Rigidbody-constraints.html