How do I get a math.random to give me a random number and if it is less than 50 print(“test”) and if it is greater than 50 print("test2)
2 Likes
local RandomNumber = math.random(1, 100)
if RandomNumber > 50 then -- over than
print("test2")
elseif RandomNumber < 50 then -- less than
print("test")
end
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.