an simple tutorial showing how to create a first person lock in roblox studio.
the script:
while true do
local c = game.Players:GetChildren()
for i = 1, #c do
if c[i].ClassName == "Player" then
c[i].CameraMode = "LockFirstPerson"
end
end
wait(0.01)
end