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

how do i code first person lock?

how do i make it to where when your character spawns your instantly locked in first person?

3 answers

Auto First Person Set Up

You don't need a script to do this!

Simply follow this step:

1.Open Explorer

2.Click on StarterPlayer

3.Search for CameraMode in Properties

4.Change the CameraMode to LockFirstPerson

Only That,

Good Luck!

The solution for this is really easy, just create a script in "ServerScriptService" and insert the code below in the script

code:

game.Players.PlayerAdded:Connect(function(player) -- player added means a player joined the game
	wait(0.5) -- wait for the players to load
	player.CameraMaxZoomDistance = 0.5 -- 0.5 is basically first person
end)

First of all open Explorer and Properties.

  1. In the browser select "StarterPlayer"
  2. When you have StarterPlayer selected, in Properties, go to the option that says "CameraMode"
  3. Lastly, change the "Classic" to "LockFirstPerson"

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