Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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

Ad

Answer this question