I have a math.random calling a number between 1 and 25. If it lands on any number between 1 and 11 I want it to do blank. Is there and easy way to write this without 25 elseif statements?
Code that doesn’t work:
while true do
wait(.5)
stage = math.random(1,25)
if stage == 11-24 then
print("Night!")
night()
elseif stage == 1-10 then
print("Day!")
day()
elseif stage == 25 then
print("STORM!")
storm()
end
end