Split players into even teams when button pressed (2-4 teams)

I’m making a Smash Bros style map and want to make different game modes. I want to have some game modes that switch players into even teams, and a button to cause this to happen. I want the option to split players into 2 teams or 4 teams. How can I do all this?

Thanks for your help, community

You could use a block that has a number generator for it? I’m not too sure.

1 Like

You can add a team switcher, set it to team 1,2,3, or 4, and there it is. Done.

I know that, my question though is how I can make half the server get effected by one, and the other half by the other. Same thing with the 4 teams.

what do you mean,

do you mean half of server get sent split to 2 team, then half server get split to 4 team?

You can preset teams in the map settings.


And for the button part, you can use a relay with all players on a team connected to two or four team switchers.

1 Like

I know that, I need it to happen when a button is pressed though

Well, it’ll only put the person that triggers it on a different team. I need it to

  1. affect everybody and
  2. Put them on even teams

I edited my previous post for the solution.

The first thing you said was right. When I said same thing for 4, I meant the server gets split into quarters and each quarter is put on a team.

Here it is.

That might switch them into different teams, but

  1. I don’t think they’d get split evenly and
  2. It might switch everyone to the same team.

Well, if you start by dividing them in map options, you can use the team switcher relay thing.

If they’re on the same team, they won’t be able to attack each other. If they end up in different teams, they won’t be even because it would be randomized.

Here, give me a sec to figure this out, I am on terrible Wi-Fi and can’t start up Gimkit right now. Sorry.

1 Like

so @Michaelbob you need to be able to split the lobby in 4 parts?
ok, so basically use a live player counter, set the number of live player to a property, divide it by four, then make 4 team switchers, then trigger that team switchers the amount of times in that property

1 Like

That might work well, I made a good player counter once but can’t remember how to make it. I’ll try to see if I can remember by trying to make it.

Also, how do I divide by 4 and how do I make the 4 parts go into the team switchers?

oh umm, oh no.
OH NO
U FOUND A FATAL FLAW

wait lemme think

1 Like

In theory, couldn’t you attach it to a counter and then have the 4 things just switch, reducing the number by one each time. You could use channels for the whole process of setting the switchers off in order until the counter reaches zero and stops the process.

I… don’t really understand what you just said. Could you clarify please, maybe by answering my questions below?

Wdym by it?

What are the 4 things, switch what?

What are the switchers? Set off in order?