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

What script should I use to lock and unlock first person?

I want to make a script that every time someone equips a tool I want to lock first person and every time someone unequips it to return back to normal. What code should I use?

1 answer

If you want a player to go first person when they join the game you could put in this

game.Players.PlayerAdded:connect(function(player)
	wait(1) --wait in case there is lag
	player.CameraMaxZoomDistance = 0 --forces the player to go first person
 end)

If you want it to be changable, you could make a script in starter player that if a certain event happens in the game it uses the script above to change the player to first person.

1 comment

0

I want to be changeable and when it is not happening back to normal

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