Check If All Players Are On One Team

How would i check if all the players are on one team I’m trying to make it so if all players die a new round starts

There is a :GetPlayers() method for teams which returns a table of players:

You can check if the table for the “Playing” team is empty to start a new round (assuming that when a player dies they are placed onto another team like “Lobby” or something)

clarification: You check if the table is empty every time a Character is removed (then you check if that character was on the “playing” team cause maybe someone in the lobby resets)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.