Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. local msg = Instance.new("Hint")
  2. msg.Name = "Hint"
  3. msg.Parent = game.Workspace
  4. local added = msg:clone()
  5. local regen = {game.Workspace.Board:clone(), game.Workspace.DScreen:clone(), game.Workspace.NextPlayers:clone(), game.Workspace["Sign Up!"]:clone(), game.Workspace.MainGame:clone()}
  6. local regeners = {}
  7. local trash = {"Board", "Display", "NextPlayers", "Sign Up!", "MainGame", "Message"}
  8.  
  9. function regenGame()
  10. added.Text = "Number of people achieved to regen"
  11. regeners = nil
  12. regeners = {}
  13. local item = game.Workspace:children()
  14. for i = 1, #item do for x = 1, #trash do if item[i].Name == trash[x] then item[i].Parent = nil end end end
  15. for i = 1, #regen do regen[i]:clone().Parent = game.Workspace end
  16. local player = game.Players:children()
  17. if #player < 1 then return end
  18. for i = 1, #player do
  19. if player[i].Character ~= nil then
  20. local model = player[i].Character:children()
  21. if #model > 0 then
  22. for i = x, #model do
  23. if model[x].className == "Model" then
  24. local item = model[x]:children()
  25. if #item > 0 then for s = 1, #item do item[s].Parent = player[i].Character end end
  26. end
  27. end
  28. end
  29. player[i].Character:BreakJoints()
  30. end
  31. end
  32. end
  33.  
  34. function onChatted(msg, player)
  35. if msg == "/regenGame" then
  36. for i = 1, #regeners do if regeners[i] ~= nil then if regeners[i].Name == player then return end end end
  37. table.insert(regeners, player)
  38. local newTable = {}
  39. for i = 1, #regeners do
  40. if regeners[i] ~= nil then
  41. if regeners[i].Parent == game.Players then table.insert(newTable, regeners[i]) end
  42. end
  43. end
  44. regeners = newTable
  45. added.Text = player.Name.." wants to regen. "..#regeners.." out of "..#(game.Players:children()).." needed to regen game"
  46. if #regeners >= #(game.Players:children()) then regenGame() end
  47. wait(3)
  48. added.Parent = nil
  49. end
  50. end
  51.  
  52. game.Players.ChildAdded:connect(function(player)
  53. player.Chatted:connect(function(msg, recipient) onChatted(msg, player) end)
  54. end)
  55. while true do
  56. msg.Text = "Here's how to play Who Wants to be a Millionaire"
  57. wait(3)
  58. msg.Text = "Your goal is to answer multiple choice questions correctly in a limited amount of time"
  59. wait(5)
  60. msg.Text = "Once you select an answer, hit the \"Final Answer\" button to make your final selection"
  61. wait(4)
  62. msg.Text = "If you get stumped you have 5 lifelines to help you - "
  63. wait(3)
  64. msg.Text = "Fifty-Fifty(50:50), which takes away 2 wrong answers"
  65. wait(2.5)
  66. msg.Text = "Ask the Audiance, which we will pull an audiance and give you a poll result from it"
  67. wait(3.5)
  68. msg.Text = "Phone-a-Friend, which you'll have a chance to call 1 of 3 people for help"
  69. wait(3)
  70. msg.Text = "Double dip, which you get an extra chance to guess an answer"
  71. wait(2.5)
  72. msg.Text = "Ask the Expert, which you'll get a chance to ask 1 of 3 experts"
  73. wait(3)
  74. msg.Text = "You may walk away with your money you've already have by clicking the \"Walk Away\" button"
  75. wait(4)
  76. msg.Text = "If you got a question wrong then you'll leave with..."
  77. wait(2.5)
  78. msg.Text = "...the last milestone questions that you've passed which are $1,000 and $16,000"
  79. wait(3)
  80. msg.Text = "Ready to play? Touch the Sign Up button to sign up!"
  81. wait(10)
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement