Lock Z Rotation. Character Controller.

Well, I’m having trouble with this:
My character has a bow, and I can aim on the x and y axis, but my character also rotates on the z axis, so I was wondering if there’s any way to lock the z axis so my character can’t rotate sideways? I’m using a Character Controller. If someone could help me I’ll appreciate a lot :slight_smile:

transform.eulerangles.z = 0;

mark answered if your satisfied. :slight_smile: