How to make Fp camera only turn on x-axis

How do i make the fp camera only rotate on the x-axis?
so you can look side to side but not up and down.

In the FPS camera code, there should be a line that sets the camera rotation. Change it so it doesn’t affect the axis you don’t want to change.

Ok, Thanks!


Iv deleted the y value changer… will this work?Screenshot 2021-02-24 at 4.39.38 PM