First person when alive, third person when dead

I’m making an FPS game, I’ve made it first person lock but when you die, you ragdoll as expected but you’re still in first person. Is there a way to make your character third person temporarily when you die, and back to first person when you’re alive?

Weaponables Testing Place

2 Likes

Change the Player’s CameraMode to “Classic” when they die

--LocalScript inside StarterCharacterScripts
local Player = game.Players.LocalPlayer
local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")

Player.CameraMode = Enum.CameraMode.LockFirstPerson

Humanoid.Died:Connect(function()
    Player.CameraMode = Enum.CameraMode.Classic
end)
6 Likes

Set the localplayer’s camera to their humanoid using Camera.CameraSubject(link) when they die

Assuming you lock their camera to FPS on CharacterAdded, their camera will go back to FPS when they respawn.

1 Like

Make a CharacterAdded function that sets their camera to 1st Person, then an OnDied function on their humanoid to turn them 3rd Person

1 Like