How to prevent player to turn all the way back (in first person)

Hey guys,
I’m trying the prevent the player from looking all the way back in first person (like the player can only turn 90 degrees)

but I don’t know how to do this

I tried to look on the dev forum for solution but I didn’t found what I wnted.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

There are multiple topics similar to yours. Please search before posting.

yea, I already tried the first one, but it not working as I expected and the problem with second one is that i don’t really understand.