Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help With Waiting For Teams To Die?

Asked by
Scootakip 299 Moderation Voter
8 years ago
local debounce = true
while debounce == true do
    if getPlayerNumberInTeam(tostring(game.Teams.Toons.TeamColor)) == 0 or getPlayerNumberInTeam(tostring(game.Teams.Cogs.TeamColor)) == 0 then
        debounce = false
        wait()
    end
    wait()
end

This script works so it pauses the script until either the team "Toons" or the team "Cogs" has 0 players, however it only works when the Toons has 0 players, it doesn't work for cogs. Help please?

Answer this question