waggfagg

Paintgui

Jun 9th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. name = "alexander6000"
  2.  
  3. me = game.Players.alexander6000
  4.  
  5.  
  6. if script.Parent.className ~= "HopperBin" then
  7.  
  8. h = Instance.new("HopperBin")
  9.  
  10. h.Parent = me.Backpack
  11.  
  12. h.Name = "Draw"
  13.  
  14. script.Parent = h
  15.  
  16. end
  17.  
  18.  
  19.  
  20. sp = script.Parent
  21.  
  22.  
  23.  
  24. size = 10
  25.  
  26. color = "Really black"
  27.  
  28. hold = false
  29.  
  30.  
  31.  
  32. colors = {}
  33.  
  34.  
  35.  
  36. for i = 1, 1032 do
  37.  
  38. if BrickColor.new(i) ~= BrickColor.new("Medium stone grey") then
  39.  
  40. table.insert(colors, tostring(BrickColor.new(i)))
  41.  
  42. end
  43.  
  44. end
  45.  
  46.  
  47.  
  48. drawings = {}
  49.  
  50.  
  51.  
  52. function sel(mouse)
  53.  
  54. mouse.Icon = " "
  55.  
  56. gu = Instance.new("ScreenGui")
  57.  
  58. gu.Parent = me.PlayerGui
  59.  
  60. gu.Name = "clicklol"
  61.  
  62. fra = Instance.new("Frame")
  63.  
  64. fra.Parent = gu
  65.  
  66. fra.Size = UDim2.new(0,200,0,600)
  67.  
  68. fra.Position = UDim2.new(0,0,0,-20)
  69.  
  70. fra.BackgroundColor3 = Color3.new(0.2,0.2,0.3)
  71.  
  72. local pos = 200
  73.  
  74. local pos2 = 10
  75.  
  76. for i=1, #colors do
  77.  
  78. ki = Instance.new("TextButton")
  79.  
  80. ki.Parent = gu
  81.  
  82. ki.Size = UDim2.new(0,17,0,17)
  83.  
  84. ki.Position = UDim2.new(0,pos,0,pos2)
  85.  
  86. ki.BackgroundColor = BrickColor.new(colors[i])
  87.  
  88. ki.Text = ""
  89.  
  90. ki.MouseButton1Click:connect(function()
  91.  
  92. color = colors[i]
  93.  
  94. end)
  95.  
  96. pos = pos + 20
  97.  
  98. if pos >= 180 then
  99.  
  100. pos = 10
  101.  
  102. pos2 = pos2 + 20
  103.  
  104. end
  105.  
  106. end
  107.  
  108. clear = Instance.new("TextButton")
  109.  
  110. clear.Parent = gu
  111.  
  112. clear.Size = UDim2.new(0,120,0,50)
  113.  
  114. clear.Position = UDim2.new(0,40,0,400)
  115.  
  116. clear.BackgroundColor3 = Color3.new(0.1,0.1,0.5)
  117.  
  118. clear.Text = "Clear"
  119.  
  120. clear.FontSize = "Size12"
  121.  
  122. clear.MouseButton1Click:connect(function()
  123.  
  124. for i=1, #drawings do
  125.  
  126. drawings[i]:remove()
  127.  
  128. end
  129.  
  130. end)
  131.  
  132. mouse.Button1Down:connect(function()
  133.  
  134. hold = true
  135.  
  136. mouse.Move:connect(function()
  137.  
  138. if hold == true then
  139.  
  140. local k = Instance.new("Frame")
  141.  
  142. k.Parent = gu
  143.  
  144. k.Size = UDim2.new(0,size,0,size)
  145.  
  146. k.BackgroundColor = BrickColor.new(color)
  147.  
  148. k.BorderColor = k.BackgroundColor
  149.  
  150. k.Position = UDim2.new(0,mouse.X - 2,0,mouse.Y - 22)
  151.  
  152. table.insert(drawings,k)
  153.  
  154. end
  155.  
  156. end)
  157.  
  158. end)
  159.  
  160. mouse.Button1Up:connect(function()
  161.  
  162. hold = false
  163.  
  164. fra:remove()
  165.  
  166. end)
  167.  
  168. end
  169.  
  170.  
  171.  
  172. sp.Selected:connect(sel)
  173.  
  174.  
  175.  
  176.  
  177.  
  178. --lego
Add Comment
Please, Sign In to add comment