local player = game.Players.LocalPlayer
humanoid = player.Character:WaitForChild("Humanoid")
player.CameraMode = "LockFirstPerson"
player.CameraMaxZoomDistance = 0
humanoid.Changed:connect(function()
if humanoid.Jump then
humanoid.Jump=false
end
end)
I have this in a LocalScript. It's supposed to disable the character jumping and lock them into First Person View, however it's very buggy online and sometimes won't work at all.

3 comments
is it in a local script? in startergui
You don't need that if then statement, and if your character is locked in FPS then you don't need to change the max zoom to 0
Localscript.