Issue With Rotating Camera with Script

I am having an issue with my camera script. It is only supposed to be rotating side to side(y axis) but is also moving up and down to I will attach a video to show what I mean. Here is the code that rotates the camera. I am trying to make one that behaves similarly to the the one in studio.

Camera.CFrame *= CFrame.Angles(0, input.Delta.x / -10, 0)

Have you set the CameraType to scriptable?

Yes the camera is set to scriptable.