Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I randomly organize tables?

I need some help randomizing the table. I have a script that recognizes how many players to put on each team, and it works, but if the amount of players stays the same they will be on the same team each round which is not ideal for the game. All of this is in a module so i just need a function please. Thx

2 comments

0

We don't work for you. You can't just ask us to write code for you. This is ScriptingHelpers, we help you with your script.

0

You should be randomizing each team before the round starts. Without code I can't see where your randomize function.

1 answer

table.sort(table_name_here)

It's that simple -- have fun!

This discussion is preserved as it was. New answers, comments, and votes are closed.