I want to make script when all players in team dies will be run next code, when I tried I'm tested and code starts if one player will die in team not all what's my mistake?
ServerScript
for i,b in pairs(game.Teams.Playing:GetPlayers()) do
b.Character:FindFirstChild("Humanoid").Died:connect(function()
wait(8)
workspace.Map:ClearAllChildren()
if Players.Value < 2 then
Message.Value = "2 Players are needed!"
GameActive = false
else
gamestart()
Message.Value = "Intermission..."
end
end)
end
