How would I prevent players from looking up and down? I already tried changing the camera type to orbital, but it makes the player kinda look down and not straight.
Just bind a function to RenderStepped
using RunService
on a LocalScript and have the function set the CurrentCamera
CFrames X orientation to 0
Something like
Camera.CFrame = CFrame.new(Camera.CFrame.Position) * CFrame.Angles(0, math.rad(Camera.CFrame.Rotation.Y), math.rad(Camera.CFrame.Rotation.Z))
(For whatever reason, using the X axis changes the vertical tilt of the camera in my scenario, try Y if it’s horizontal for you)
Hi, just tried the code. Its only making the camera not even rotate.