So I am currently making a game with a lot of randomizing and its a pretty basic game. I have all the gears scripted and everything but I just need to learn one thing. How do you do math.random with just not numbers? I know how it would usually work
--I know how to use it regularly
local e = math.random(1,2)
if e==1 then
end
else
end
But I don't know how to do it with tables and more than 2 things
--Is this right?
local e = math.random(#Lighting, #Lighting)
if e==item1 then
end
elseif e==item2 then
end
else
end
