|
| 08 Aug 2014 06:55 PM |
Okay so, this works fine when its one person, but multiple players it does not flow right. The line where it says "Tag.Value = Names[random]" goes nil. This script is suppose to make it so every player get a random name with a character. But, when I try to make that nil so no one else ends up with the same name. This does not work right.
for i = 1, #Players do if Players[i] ~= nil then random = math.random(#Names) Tag.Value = Names[random] --ERROR LINE-- Names[random] = nil Players[i].Alive.Value = true |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 08 Aug 2014 08:02 PM |
math.Random() can take a single argument, but in your case, it's not supposed to.
instead of math.Random(#Names), do math.Random(1, #Names) |
|
|
| Report Abuse |
|
|