Create team selection on multiplayer

how can I create a team widget selection
I created one but whenever someone enters the server you can only choose a player and the other someone will be with no player, as a spectator. Look in the picture below, how do I make it so multiple players can play?