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

How do I pick a random name from a table?

I want that everytime someone steps on a part it will generate a random level I was trying to find a way but when I try to do it then its just generating the first value on the table

1 comment

0

what is the code to randomly generate a level?

1 answer

✓ Accepted answer

you cant ask for someone to make a code for you in this website. Here is some tips, you can randomly pick a name inside a table with math.random example :

local table = {"a","b","c"}
print(table[math.random(1,3)])

1 comment

0

output : a or b or c

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