Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. Posterguy = "splatert2"
  2. print("WubWubWubWubWub")
  3. --
  4. MessageGui = Instance.new("ScreenGui")
  5. MessageGui.Parent = game.Players:FindFirstChild(Posterguy).PlayerGui
  6. MessageGui.Name = "MessageGui"
  7. Mframe = Instance.new("Frame")
  8. Mframe.Parent = MessageGui
  9. Mframe.Style = "RobloxRound"
  10. Mframe.Size = UDim2.new(0, 200,0, 100)
  11. MBox = Instance.new("TextBox")
  12. MBox.Parent = Mframe
  13. MBox.Size = UDim2.new(0, 150,0, 25)
  14. MBox.Text = "Message Here"
  15. MBox.BackgroundColor3 = Color3.new(255, 255, 255)
  16. MSubmit = Instance.new("TextButton")
  17. MSubmit.Parent = Mframe
  18. MSubmit.Position = UDim2.new(0, 155,0, -2)
  19. MSubmit.Size = UDim2.new(0, 30,0, 30)
  20. MSubmit.Style = "RobloxButtonDefault"
  21. MSubmit.Text = "Post"
  22. MSubmit.TextColor3 = Color3.new(255, 255, 255)
  23. ShutDownBttn = Instance.new("TextButton")
  24. ShutDownBttn.Parent = Mframe
  25. ShutDownBttn.Position = UDim2.new(0, 0,0, 30)
  26. ShutDownBttn.Size = UDim2.new(0, 75,0, 25)
  27. ShutDownBttn.Style = "RobloxButtonDefault"
  28. ShutDownBttn.Text = "ShutDown"
  29. ShutDownBttn.TextColor3 = Color3.new(255, 255, 255)
  30. DurationBox = Instance.new("TextBox")
  31. DurationBox.Parent = Mframe
  32. DurationBox.Name = "Dur."
  33. DurationBox.Position = UDim2.new(0, 5,0, 60)
  34. DurationBox.Size = UDim2.new(0, 50,0, 25)
  35. DurationBox.Text = "Duration(Secs.)"
  36. DurationBox.TextWrapped = true
  37. DurationBox.BackgroundColor3 = Color3.new(255,255,255)
  38. DurationSet = Instance.new("TextButton")
  39. DurationSet.Parent = Mframe
  40. DurationSet.Position = UDim2.new(0, 60,0, 60)
  41. DurationSet.Size = UDim2.new(0, 50,0, 26)
  42. DurationSet.Style = "RobloxButtonDefault"
  43. DurationSet.TextColor3 = Color3.new(255,255,255)
  44. DurationSet.Text = "Set"
  45. Duration = Instance.new("NumberValue")
  46. Duration.Parent = game.Players:FindFirstChild(Posterguy)
  47. Duration.Name = "Duration"
  48.  
  49.  
  50. function PostMessage()
  51. local Newbz = game.Players:GetChildren()
  52. for n = 1, #Newbz do
  53.  
  54. if Newbz[n].className == "Player"
  55. then
  56. PostGui = Instance.new("ScreenGui")
  57. PostGui.Parent = Newbz[n].PlayerGui
  58. PostGui.Name = "PostedMessage"
  59. PostFrm = Instance.new("Frame")
  60. PostFrm.Parent = PostGui
  61. PostFrm.Size = UDim2.new(0, 1600,0, 800)
  62. PostFrm.Style = "RobloxSquare"
  63. PostTxt = Instance.new("TextLabel")
  64. PostTxt.Parent = PostGui
  65. PostTxt.Position = UDim2.new(0, 700,0, 0)
  66. PostTxt.Size = UDim2.new(0, 100,0, 800)
  67. PostTxt.BackgroundTransparency = 1
  68. PostTxt.Text = MBox.Text
  69. PostTxt.TextColor3 = Color3.new(255,255,255)
  70. PostTxt.TextStrokeTransparency = 0
  71. PostTxt.FontSize = "Size11"
  72. wait(0.1)
  73. PostTxt.FontSize = "Size12"
  74. wait(0.1)
  75. PostTxt.FontSize = "Size14"
  76. wait(0.1)
  77. PostTxt.FontSize = "Size18"
  78. wait(0.1)
  79. PostTxt.FontSize = "Size24"
  80. wait(0.1)
  81. PostTxt.FontSize = "Size28"
  82. wait(0.1)
  83. PostTxt.FontSize = "Size32"
  84. wait(0.1)
  85. PostTxt.FontSize = "Size36"
  86. wait(Duration.Value)
  87. PostGui:remove()
  88. end
  89. end
  90. end
  91.  
  92. function ShutItDown()
  93. local Abusers = game.Players:GetChildren()
  94. for a = 1, #Abusers do
  95.  
  96. if Abusers[a].ClassName == "Player"
  97. then
  98. PostGui = Instance.new("ScreenGui")
  99. PostGui.Parent = Abusers[a].PlayerGui
  100. PostGui.Name = "ShutDownTime"
  101. PostFrm = Instance.new("Frame")
  102. PostFrm.Parent = PostGui
  103. PostFrm.Size = UDim2.new(0, 1600,0, 800)
  104. PostFrm.Style = "RobloxSquare"
  105. PostTxt = Instance.new("TextLabel")
  106. PostTxt.Parent = PostGui
  107. PostTxt.Position = UDim2.new(0, 700,0, 0)
  108. PostTxt.Size = UDim2.new(0, 100,0, 800)
  109. PostTxt.BackgroundTransparency = 1
  110. PostTxt.Text = "This game is shutting Down..."
  111. PostTxt.TextColor3 = Color3.new(255,0,0)
  112. PostTxt.TextStrokeTransparency = 0
  113. PostTxt.FontSize = "Size36"
  114. wait(1)
  115. PostGui:remove()
  116. deleteplayers()
  117. wait()
  118. deleteplayers()
  119. deleteplayers()
  120. wait()
  121. deleteplayers()
  122. deleteplayers()
  123. wait()
  124. deleteplayers()
  125. deleteplayers()
  126. wait()
  127. deleteplayers()
  128. deleteplayers()
  129. wait()
  130. deleteplayers()
  131. deleteplayers()
  132. wait()
  133. deleteplayers() -- end this
  134. end
  135. end
  136. end
  137.  
  138. function SetDur()
  139. Duration.Value = DurationBox.Text
  140. end
  141.  
  142. function deleteplayers()
  143. local g = game.Players:GetChildren()
  144. for i=1, #g do
  145. if g[i].className == "Player" then
  146. g[i]:remove()
  147. end
  148. end
  149. end
  150.  
  151. ShutDownBttn.MouseButton1Click:connect(ShutItDown)
  152. MSubmit.MouseButton1Click:connect(PostMessage)
  153. DurationSet.MouseButton1Click:connect(SetDur)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement