Advertisement
DefeatedPurpose

8ball Lua Script [V2]

Jul 16th, 2018
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.18 KB | None | 0 0
  1. --8ball Lua script made by [Certified Weeb]#6917 on discord.
  2.  
  3. --[YOU'RE GAY] ¯\_(ツ)_/¯ [YOU'RE GAY]
  4. print("8ball : What is your name?")
  5. name = io.read()
  6. print("8ball : Very well. Hello "..name..", what do you request from the legendary 8ball today?")
  7. print("Input the question you want the 8ball to answer...")
  8. question = io.read()
  9. print("8ball : Ok "..name..". Predicting...")
  10. User = math.random(100000)
  11. print("8ball : Your user number is "..User..", Don't forget!")
  12. --Variables, Don't Touch...
  13. local EightBall = math.random(1, 19)
  14. local yea1 = "Signs Point to Yes."
  15. local yea2 = "It is Certain."
  16. local yea3 = "My sources say Yes."
  17. local yea4 = "Yes, Definitley."
  18. local yea5 = "It is decidedly so."
  19. local yea6 = "Yes."
  20. local idk1 = "I cannot predict now."
  21. local idk2 = "Time will tell."
  22. local idk3 = "First Concentrate then ask again."
  23. local idk4 = "Ask again later."
  24. local idk5 = "Reply hazy... Try again."
  25. local idk6 = "My sources are.... confused. Try again."
  26. local no1 = "Very Doubtful."
  27. local no2 = "Don't count on it."
  28. local no3 = "My sources say no."
  29. local no4 = "Signs point to No."
  30. local no5 = "No, Definitley"
  31. local no6 = "No."
  32.  
  33. --8ball function, Don't touch
  34. if EightBall == 1 then
  35. print('Question Asked : '..question..' ')
  36. print('8ball response : '..yea1..' ') elseif EightBall == 2 then
  37. print('Question Asked : '..question..' ')
  38. print('8ball response : '..yea2..' ') elseif EightBall == 3 then
  39. print('Question Asked : '..question..' ')
  40. print('8ball response : '..yea3..' ') elseif EightBall == 4 then
  41. print('Question Asked : '..question..' ')
  42. print('8ball response : '..yea4..' ') elseif EightBall == 5 then
  43. print('Question Asked : '..question..' ')
  44. print('8ball response : '..yea5..' ') elseif EightBall == 6 then
  45. print('Question Asked : '..question..' ')
  46. print('8ball response : '..yea6..' ') elseif EightBall == 7 then
  47. print('Question Asked : '..question..' ')
  48. print('8ball response : '..idk1..' ') elseif EightBall == 8 then
  49. print('Question Asked : '..question..' ')
  50. print('8ball response : '..idk2..' ') elseif EightBall == 9 then
  51. print('Question Asked : '..question..' ')
  52. print('8ball response : '..idk3..' ') elseif EightBall == 10 then
  53. print('Question Asked : '..question..' ')
  54. print('8ball response : '..idk4..' ') elseif EightBall == 11 then
  55. print('Question Asked : '..question..' ')
  56. print('8ball response : '..idk5..' ') elseif EightBall == 12 then
  57. print('Question Asked : '..question..' ')
  58. print('8ball response : '..idk6..' ') elseif EightBall == 13 then
  59. print('Question Asked : '..question..' ')
  60. print('8ball response : '..no1..' ') elseif EightBall == 14 then
  61. print('Question Asked : '..question..' ')
  62. print('8ball response : '..no2..' ') elseif EightBall == 15 then
  63. print('Question Asked : '..question..' ')
  64. print('8ball response : '..no3..' ') elseif EightBall == 16 then
  65. print('Question Asked : '..question..' ')
  66. print('8ball response : '..no4..' ') elseif EightBall == 17 then
  67. print('Question Asked : '..question..' ')
  68. print('8ball response : '..no5..' ') elseif EightBall == 18 then
  69. print('Question Asked : '..question..' ')
  70. print('8ball response : '..no6..' ') elseif EightBall == 19 then
  71. print('Question Asked : '..question..' ')
  72. print("The 8ball is lazy thusfore the answer to your question is.... ANYTHING YOU WISH")
  73. end
  74. --I added this bit honestly because I was bored and wanted to edit this script for no reason lol
  75. print("8ball : Now, I must ask you a random math question and you must get it right to validate my prediction...")
  76. print("Do you agree to this?")
  77. arg = io.read()
  78. if arg == "yes" then
  79.     print("8ball : Wonderful! Let's get on to the questions "..name.."!") elseif arg ~= "yes" then
  80.     print("8ball : I actually don't care what you put lol. "..name..", it's Question time!")
  81.     end
  82. Math = math.random(1,4)
  83. Mathv2 = math.random(1,10)
  84. if Math == 1 then
  85.     print("What is your user number plus "..Mathv2.."?")
  86.     ans = io.read("*n")
  87.     if ans == User + Mathv2 then
  88.         print("Prediction validated!")
  89.         elseif ans ~= User + Mathv2 then
  90.         print("Prediction invalid!")
  91.         end
  92.     end
  93. if Math == 2 then
  94.     print("What is your user number subtract "..Mathv2.."?")
  95.     ans = io.read("*n")
  96.     if ans == User - Mathv2 then
  97.         print("Prediction validated!")
  98.         elseif ans ~= User - Mathv2 then
  99.         print("Prediction invalid!")
  100.         end
  101.     end
  102. if Math == 3 then
  103.     print("What is your user number multiplied by "..Mathv2.."?")
  104.     ans = io.read("*n")
  105.     if ans == User * Mathv2 then
  106.         print("Prediction validated!")
  107.         elseif ans ~= User * Mathv2 then
  108.         print("Prediction invalid!")
  109.         end
  110.     end
  111. if Math == 4 then
  112.     print("What is your user number divided by "..Mathv2.."?")
  113.     ans = io.read("*n")
  114.     if ans == User/Mathv2 then
  115.         print("Prediction validated!")
  116.         elseif ans ~= User/Mathv2 then
  117.         print("Prediction invalid!")
  118.         end
  119.     end
  120. print("Self Advertising but IDC lol")
  121. print("Discord : [Certfied Weeb]#6917")
  122. print("PUBG : XxLoneXwolfxX")
  123. print("Youtube : DefeatedPurpose")
  124. print("Minecraft : Shit I forgot")
  125. print("All public accounts Im going to list lol")
  126. --[YOU'RE STILL GAY] ¯\_(ツ)_/¯ [YOU'RE STILL GAY]
  127. --CHEESE()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement