Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to do I randomize teams but only one person per team?

Asked by 5 years ago

I am making a game called "Memory Madness" in which players must repeat a sequence of colors to survive, those who do not put in the correct sequence are eliminated. After intermission, I want the teams to be shuffled, but the teams can only have a single person in each team, how do I do this?

0
That's a lot of elements and you're asking for one script. No. Robloxian_Hero1234 14 — 5y
0
Hmm good question. But im pretty sure you have to use the math.random function. Im pretty new to scripting so i suggest you maby learn how to use the math.random function. And then learn how to create teams. Skydoeskey 108 — 5y
1
this is not a script request site, come with your script if you got issues with one and we'll help the best we can Gameplayer365247v2 1055 — 5y
1
but what u can do is check if there isnt a player in the team and if there isnt then use math.random to pick a player to put into the team Gameplayer365247v2 1055 — 5y
0
^ As he said, we'd like to see an attempt of your script first. When you need to get to the team-shuffling part, you can create a for loop going through the players, use math.random to assign a team to them, and then some variables in the script to make sure only 1 is in a team. Lugical 425 — 5y

Answer this question