After the player presse's a button they will be in first person. But this code does not seem to be working.It is in a local script inside the players PlayerGui
Player = game.Players.LocalPlayer Clicked = false local player = game.Players.LocalPlayer Cam = workspace.CurrentCamera -- Currently not in use Player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() if Clicked then character:WaitForChild("Humanoid") print("The player has died") Player.CameraMode = Enum.CameraMode.LockFirstPerson print(Clicked) end end) end) game.workspace.Lobby.Log.PlayButton.SurfaceGui.ImageButton.MouseButton1Click:connect(function() Clicked = true Player.CameraMode = Enum.CameraMode.LockFirstPerson end)