#Humanoid.Died does not trigger
1 messages · Page 1 of 1 (latest)
3```lua
for i, plr in pairs(game.Players:GetPlayers()) do
if plr.Team == playingPlrs then
local char = plr.Character or plr.CharacterAdded:Wait()
char.Humanoid.Died:Connect(function()
print('Player died, removing player count...')
plr.Team = game.Teams.Lobby
playingPlrs = #playingTeam:GetPlayers()
subTitle.Value = "Players left: " .. playingPlrs
map.PlayersAlive.Value = playingPlrs
end)
end
end
this is the code
** You are now Level 1! **