Hello! I would like to know how to prevent the players camera from looking up or down
Roblox has a local camera script I believe, mess with it by starting the game and finding the script. You then make a new camera script retaining the same name and place it in StarterPlayerScripts that has your desired changes.
You’d mess with that script to see how you can prevent moving the camera up and down.
2 Likes
Two ways:
-
Bind to render stepped,
Last
priority, and just force the pitch of the camera to 0 every frame. This is probably the easiest way, since ROBLOX will still handle all the different types of inputs for you. - Make a LocalScript in StarterPlayerScripts called “CameraScript” and implement the entire camera script yourself. You can run a game first and see what the default one is, and then modify it to prevent y-axis. This is probably the “right” way, but it’s gonna take some work figuring out what ROBLOX’s monster of a script actually does.
4 Likes