Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to Lock Player view to first-person mode on spawn?

I'm still a beginner, but I would like to know how to lock player view to first-person mode on spawn? So you can't scroll out.

1 answer

You can use the PlayerAdded event, it fires when a player joins the game.

game.Players.PlayerAdded:connect(function(player)
player.CameraMode = "LockFirstPersom"
end)

Warning: This only works on script Warning: This doesn't work on solo mode because the player is created before the script is running which means the PlayerAdded event doesn't fire

This discussion is preserved as it was. New answers, comments, and votes are closed.