Sorting 4 Teams

I’m trying to figure out how to sort 4 teams. I have found a post with a solution that shows how to sort 2 teams but 4 teams I don’t know how I’ll be able to do this.

What do you mean by “sorting a team”?

Depends what you mean by “sorting teams”

What I mean is evening out 4 teams.

I’ll steal straight from this article, which provides the functionality to balance teams while keeping friends together:

See the “Complete Script” at the bottom of the page, or read the article to learn how it works.

I think all you have to do it change game.Players.MaxPlayers / 2 to game.Players.MaxPlayers / 4 wherever you see it (I see it in two places).