Here's how I made it stop going left and right:
1
local
cam
=
workspace.CurrentCamera
2
cam.CameraType
"Attach"
But I also need to to stop going up and down.