DontDoItIDareU

Pain N Guess (clear board) trolling

Sep 13th, 2018
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. -- Objects
  2.  
  3. local Gui = Instance.new("ScreenGui")
  4. local ScrollingFrame = Instance.new("ScrollingFrame")
  5. local TextButton = Instance.new("TextButton")
  6. local TextLabel = Instance.new("TextLabel")
  7. local TextBox = Instance.new("TextBox")
  8. local ac = Instance.new("TextButton")
  9. local st = Instance.new("TextButton")
  10.  
  11. -- Properties
  12.  
  13. Gui.Name = "Gui"
  14. Gui.Parent = game.CoreGui
  15.  
  16. ScrollingFrame.Parent = Gui
  17. ScrollingFrame.BackgroundColor3 = Color3.new(0.184314, 0.337255, 0.407843)
  18. ScrollingFrame.BackgroundTransparency = 0.34999999403954
  19. ScrollingFrame.BorderColor3 = Color3.new(0.207843, 0.2, 0.0431373)
  20. ScrollingFrame.BorderSizePixel = 0
  21. ScrollingFrame.Position = UDim2.new(0, 0, 0, 406)
  22. ScrollingFrame.Size = UDim2.new(0, 200, 0, 207)
  23. ScrollingFrame.ScrollBarThickness = 15
  24.  
  25. TextButton.Parent = ScrollingFrame
  26. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  27. TextButton.BackgroundTransparency = 0.34999999403954
  28. TextButton.BorderSizePixel = 0
  29. TextButton.Position = UDim2.new(0, 36, 0, 18)
  30. TextButton.Size = UDim2.new(0, 129, 0, 50)
  31. TextButton.Font = Enum.Font.Cartoon
  32. TextButton.Text = "Clear"
  33. TextButton.TextSize = 25
  34.  
  35. TextLabel.Parent = ScrollingFrame
  36. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  37. TextLabel.BackgroundTransparency = 1
  38. TextLabel.BorderSizePixel = 0
  39. TextLabel.Position = UDim2.new(0, 39, 0, 78)
  40. TextLabel.Size = UDim2.new(0, 122, 0, 26)
  41. TextLabel.Font = Enum.Font.Cartoon
  42. TextLabel.Text = "AUTOMATIC:"
  43. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  44. TextLabel.TextSize = 20
  45.  
  46. TextBox.Parent = ScrollingFrame
  47. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  48. TextBox.BorderSizePixel = 0
  49. TextBox.Position = UDim2.new(0, 16, 0, 104)
  50. TextBox.Size = UDim2.new(0, 168, 0, 30)
  51. TextBox.Font = Enum.Font.Cartoon
  52. TextBox.Text = "SECONDS"
  53. TextBox.TextSize = 14
  54.  
  55. ac.Name = "ac"
  56. ac.Parent = ScrollingFrame
  57. ac.BackgroundColor3 = Color3.new(1, 1, 1)
  58. ac.BackgroundTransparency = 0.34999999403954
  59. ac.BorderSizePixel = 0
  60. ac.Position = UDim2.new(0, 36, 0, 141)
  61. ac.Size = UDim2.new(0, 129, 0, 25)
  62. ac.Font = Enum.Font.Cartoon
  63. ac.Text = "Start"
  64. ac.TextSize = 25
  65.  
  66. st.Name = "st"
  67. st.Parent = ScrollingFrame
  68. st.BackgroundColor3 = Color3.new(1, 1, 1)
  69. st.BackgroundTransparency = 0.34999999403954
  70. st.BorderSizePixel = 0
  71. st.Position = UDim2.new(0, 36, 0, 182)
  72. st.Size = UDim2.new(0, 129, 0, 25)
  73. st.Font = Enum.Font.Cartoon
  74. st.Text = "Stop"
  75. st.TextSize = 25
  76.  
  77. TextButton.MouseButton1Down:connect(function()
  78. game.ReplicatedStorage.Remotes.ClearDrawingBoard:FireServer()
  79. end)
  80.  
  81. ac.MouseButton1Down:connect(function()
  82. x = 6
  83. while x >= 5 do
  84. game.ReplicatedStorage.Remotes.ClearDrawingBoard:FireServer()
  85. wait(TextBox.Text)
  86. end
  87. end)
  88.  
  89. st.MouseButton1Down:connect(function()
  90. x = 2
  91. end)
Advertisement
Add Comment
Please, Sign In to add comment