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?
COMMUNITY QUESTION
How to do I randomize teams but only one person per team?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
That's a lot of elements and you're asking for one script. No.
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.
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
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
^ 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.