How do I limit first-person camera rotation?

Im currently making a first-person climbing game and I want to know how to limit the rotation of the camera so i can’t see inside my mesh. I tried using the min and max yaws and get player camera manager but is in a fixed rotation. Any help would be much appreciated.