Hello anyone reading this, so i have a machine that i want to randomly stop for a bit at a specific point of the script. how could i do that? I tried with the math.random giving a number but didn't know how to continue. And also i accept if this post gets removed since i don't know if it breaks the guidelines or not.
Hi, you can make some thing like this using the math.random()
like this:
while true do local Chance = math.random(1,10) -- This will make like a 10% percent (you can change it) if Chance == 1 then break -- Makes the loop break or stop end -- Do other stuff end
Hope this worked!