Advertisement
Upscalefanatic3

Paint 'N Guess Script - Clear the board - FE

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