Gamemode creation help

I didn’t really know where to put this so sorry if this is in the wrong area.

I’m creating a gamemode but I can’t figure out how I would have teams where you can select diffrent classes when you are apart of that team.

Also I would like to know how to make it so that every round it will select a certain ammount of players example “1 player” to be on a certain team.