I'm trying to make a game with randomized powers. I know how to make a math.random script, but it's not very efficient. For example:
local PowerMath = math.random(1,100)
if PowerMath == 1 then
end
if PowerMath == 2 then
end
I wanted to know if there is a more efficient way of making a math.random instead of having to make a script for each number. Is there a way to say if math.random == 1-50 so I don't have to make an if statement for numbers 1-50?
