roblox detect when player dies then respawns
game.Players.PlayerAdded:Connect(function(pla)
pla.CharacterAdded:Connect(function()
--this code will run when the player is respawned, eg
print("Player "..pla.Name.." has respaned.")
end)
end)