game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Wait()
plr.Character:WaitForChild('Humanoid').Died:Connect(function()
print(plr.Name.." has died!")
if game.ServerStorage.Round.Value == true then
plr.Won.Value = false
end
end)
end)
this only works when the player has not died in the server yet, once they die it will stop registering their death
does anyone know why?
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function()
plr.Character:WaitForChild('Humanoid').Died:Connect(function()
print(plr.Name.." has died!")
if game.ServerStorage.Round.Value == true then
plr.Won.Value = false
end
end)
end)
end)