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

How do I randomly organize tables? [closed]

Asked by 6 years ago

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

0
We don't work for you. You can't just ask us to write code for you. This is Scripting**Helpers**, we **help** you with your **script**. addictedroblox1414 166 — 6y
0
You should be randomizing each team before the round starts. Without code I can't see where your randomize function. MooMooThalahlah 421 — 6y

Closed as Not Constructive by User#20388, Amiaa16, and Programical

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago
table.sort(table_name_here)

It's that simple -- have fun!

Ad