Problem with Configurablejoint

I have an object with a configurable joint, in general I have it locked, except for turning along X, there is free, the question is how can I make it so that it cannot freely wobble along X, but it stands out of the blue, I tried to use angularVelocity

gameObject.angularVelocity = Vector3.zero;

but it only slowed down reeling, have any ideas how can I do this?

If the object has a Rigidbody, open Constraints and lock x rotation. Hope that’s what you need.