Help with RB Controller

Hello.

I am needing to make a RB character controller fly.

Using a mouse look script that rotates the RB controller on Y. What i am needing to do is be able to rotate on X,Z as well.

characterBody.transform.localRotation = yRotation * targetCharacterOrientation;

I am needing to have this rotate on the Y only without locking X,Z.

So i was able to make it work by using add torque to rotate the player however the rotation is slugish compared to transform.rotate.

Is there a way to allow the rigidbody to rotate on X,Z while only controlling the rotation on Y.

// transform.Rotate(transform.rotation.z, rotation, transform.rotation.z);

I need the RB to be able to rotate on x,z while only modifying y.

EDIT:
nevermind have it working.