What I’m trying to do is make the camera not being able to move up or down, I don’t mess with the camera often however here is my current script which is a LocalScript inside the StarterGui.
cam = workspace.CurrentCamera
while true do
wait()
-- here is where I'm stuck, I have no idea how to prevent the player from looking up or down.
end
If you use a script to set the CameraType property of workspace.CurrentCamera then you should be able to find a way to make the camera how you want. To make your time more efficient, go to the Camera in workspace when you aren’t testing and set the camera type until you find it perfect.
To put it in better words that I should have said first was that I have LockFirstPerson on and I want the player to be able to look horizontally, but not vertically
I have tried this just now and none of the CameraTypes have this ability, one has the ability to stop the camera movement horizontally but keeps it vertically which is the opposite of what I need and another just removes both horizontally and vertically