I was making a random power chooser script that cycles through power and gives a random one, but it seems to keep printing the same thing, a little help?
local Quirks = {"Explosion", "One For All", "Electrifaction", "Giantification", "Super Jump", "Super Regen"} local RandomNumbers = {5, 10, 15} for i = 1, #RandomNumbers do for i, v in pairs(Quirks) do print(v) wait() end end
The hashtag Means the number of children in the table and RandomNumbers
has 3 children so it will always be I = 1 , 3
. Why not do
local RandomNumber = math.random(1,3)*5
That will either get 5, 10, or 15.