Advertisement
KodingKid

Lua probability scripts

Apr 9th, 2021
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local chance1 = math.random()
  2. if chance1 < .5 then
  3.     print("Hello World")
  4. elseif
  5.     end
  6. --50-50% chance script
  7. local chance2 = math.random()
  8. if chance2 < .000001 then
  9.     print("Hello World")
  10. elseif
  11.     end
  12. --1/1,000,000 chance script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement