Clamp Camera

I’m trying to make a scroll edge camera that rotates on the Z axis and I want it to clamp at like 90° sideways but everything I tried doesn’t seem to work.
This is my code to move the camera:


If you need any further info just ask.
Thanks in advance.

Hey @DeiankataTV

does this work for you?

1 Like

Thank you the code works just fine.

2 Likes