Upscalefanatic34

Minigames

May 22nd, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. script.Parent = nil
  2. words = {"i like boys", "haider", "im epic fail", "gorilla", "monkey", "l33t", "im stupid", "hey nuubz", "pancaiks ftl", "caik is a lie", "poopies", "puppies are cute", "i like stuff", "epic sauce", "wallet", "free willie", "xsoul ftw", "you lose", "lolwutpie", "ilikesaucewhichisntsauce", "naoob", "epicsuaceisntepicbutitsprettycoolsaucexdxd", "everyone fails except me!"}
  3. ct = {"Good work, boi.", "Congrats >_>", "                VIRUSED =D                 Well anyways congrats.            ", "You're epic sauceeee", "Trolled nuub!1!!", "You won. IM IMPRESSED!", "          more virus, gz."}
  4. fail = {"UMMGGG EVRY1 LOST", "Epic fail, na00bs", "YOU FAIL NOOBS TROLOLOLO", "Teehee, u guys better think faster.", "Better luck next time!", "in soviet russia, noobs lose points.", "Why always noobs fail?"}
  5.  
  6. games = math.random(15,20)
  7. lolga = games
  8. xdlol = true
  9.  
  10. function leader(player)
  11. local stats = Instance.new("IntValue")
  12. stats.Name = "leaderstats"
  13. local points = Instance.new("IntValue")
  14. points.Name = "Points"
  15. points.Value = 0
  16. local losts = Instance.new("IntValue")
  17. losts.Name = "Wins"
  18. losts.Value = 0
  19. points.Parent = stats
  20. losts.Parent = stats
  21. stats.Parent = player
  22. end
  23. for _,v in pairs(game.Players:GetPlayers()) do
  24. leader(v)
  25. end
  26. game.Players.PlayerAdded:connect(function(plah)
  27. if xdlol == true then
  28. leader(plah)
  29. end
  30. end)
  31.  
  32. for k=1, games do
  33. local plyrs = game.Players:GetPlayers()
  34. local msg = Instance.new("Message",workspace)
  35. msg.Text = "Chatting minigame starting... "..lolga.." game(s) left."
  36. lolga = lolga - 1
  37. wait(2)
  38. word = words[math.random(1,#words)]
  39. time = math.random(10,15)
  40. timenao = time
  41. msg.Text = "Everyone, You have to say: '"..word.."' in "..time.." seconds, or the fastest."
  42. local lolwut = true
  43. for _,v in pairs(game.Players:GetPlayers()) do
  44. v.Chatted:connect(function(mes)
  45. if lolwut == true then
  46. if string.find(mes,word) then
  47. lolwut = false
  48. msg.Text = ct[math.random(1,#ct)]
  49. local vic = Instance.new("Sound",workspace)
  50. vic.SoundId = "rbxasset://sounds/victory.wav"
  51. vic.Volume = 0.4
  52. vic.Pitch = math.random(9,10)/10
  53. vic:play()
  54. local stat = v:findFirstChild("leaderstats")
  55. if stat ~= nil then
  56. stat.Points.Value = stat.Points.Value + (timenao*2)
  57. stat.Wins.Value = stat.Wins.Value + 1
  58. end
  59. wait(0.3)
  60. vic:remove()
  61. end
  62. end
  63. end)
  64. end
  65. for fd=time, 0, -1 do
  66. if lolwut == true then
  67. timenao = fd
  68. msg.Text = "Everyone, You have to say: '"..word.."' in "..fd.." seconds, or the fastest."
  69. wait(1)
  70. end
  71. end
  72. if lolwut == true then
  73. lolwut = false
  74. msg.Text = fail[math.random(1,#fail)]
  75. local lose = Instance.new("Sound",workspace)
  76. lose.SoundId = "http://www.roblox.com/asset/?id=26596436"
  77. lose.Volume = 0.5
  78. lose.Pitch = math.random(8,10)/10
  79. lose:play()
  80. wait(0.3)
  81. lose:remove()
  82. wait(1.2)
  83. msg:remove()
  84. else
  85. lolwut = false
  86. wait(4)
  87. msg:remove()
  88. end
  89. end
  90.  
  91. local playahs = game.Players:GetPlayers()
  92. values = {}
  93. plars = {}
  94. for i=1, #playahs do
  95. local val = playahs[i].leaderstats.Points.Value
  96. table.insert(values,val)
  97. table.insert(plars, playahs[i].Name)
  98. end
  99. local winmsg = Instance.new("Message",workspace)
  100. winmsg.Text = "Aaannnnd, the winner iiiiiss....."
  101. wait(3)
  102. winvalue = math.max(unpack(values))
  103. winner = ""
  104. for i=1, #playahs do
  105. if playahs[i].leaderstats.Points.Value == winvalue then
  106. winner = playahs[i].Name
  107. end
  108. end
  109. winmsg.Text = winner..", with "..winvalue.." points!! GZ!!"
  110. wait(3)
  111. winmsg:remove()
  112. for i=1, #playahs do
  113. local o = playahs[i]:GetChildren()
  114. for u=1, #o do
  115. if o[u].className == "IntValue" then
  116. o[u]:remove()
  117. end
  118. end
  119. end
  120.  
  121.  
  122. --lego
Add Comment
Please, Sign In to add comment