try adding 2 variables leftdirection and rightdirection and test if the camera has met this rotation limit and if it does block the camera from rotating more. that way it rotates left and gets to the rotation value and stops rotating. hop this helps…