Player.Died. What about Player.Respawned?

We can use player.Died in scripts to do an action when a player dies, but is there a way to use something like Player.Respawned?

What about player.CharacterAdded?
I think it works.

2 Likes

I’m gonna test it out here wait a second

1 Like

Ok, it did not work. Any other ideas?

1 Like

“It did not work”

Show what you did. CharacterAdded is what you want. It fires when the character respawns.

1 Like
game.Players.LocalPlayer.Character:WaitForChild('Humanoid').CharacterAdded:connect(function()
	game.Lighting.DEATH.Enabled = false
	game.Lighting.DEATHBLUR.Enabled = false
end)
1 Like

CharacterAdded is an event of the Player, not the Humanoid.

1 Like

You mean the Player or Player.Character?

Player

Player.

-- Server script
game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		-- Character spawned
		char:WaitForChild("Humanoid").Died:Connect(function()
			-- Died
		end)
	end)
end)
4 Likes