Advertisement
icy-desudesu

x

Aug 10th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. name = "IcyMocha"
  2. me = game.Players[name]
  3.  
  4. if script.Parent.className ~= "HopperBin" then
  5. h = Instance.new("HopperBin")
  6. h.Parent = me.Backpack
  7. h.Name = "Draw"
  8. script.Parent = h
  9. end
  10.  
  11. sp = script.Parent
  12.  
  13. size = 10
  14. color = "Really black"
  15. hold = false
  16.  
  17. colors = {}
  18.  
  19. for i = 1, 1032 do
  20. if BrickColor.new(i) ~= BrickColor.new("Medium stone grey") then
  21. table.insert(colors, tostring(BrickColor.new(i)))
  22. end
  23. end
  24.  
  25. drawings = {}
  26.  
  27. function sel(mouse)
  28. mouse.Icon = " "
  29. gu = Instance.new("ScreenGui")
  30. gu.Parent = me.PlayerGui
  31. gu.Name = "clicklol"
  32. fra = Instance.new("Frame")
  33. fra.Parent = gu
  34. fra.Size = UDim2.new(0,200,0,600)
  35. fra.Position = UDim2.new(0,0,0,-20)
  36. fra.BackgroundColor3 = Color3.new(0.2,0.2,0.3)
  37. local pos = 200
  38. local pos2 = 10
  39. for i=1, #colors do
  40. ki = Instance.new("TextButton")
  41. ki.Parent = gu
  42. ki.Size = UDim2.new(0,17,0,17)
  43. ki.Position = UDim2.new(0,pos,0,pos2)
  44. ki.BackgroundColor = BrickColor.new(colors[i])
  45. ki.Text = ""
  46. ki.MouseButton1Click:connect(function()
  47. color = colors[i]
  48. end)
  49. pos = pos + 20
  50. if pos >= 180 then
  51. pos = 10
  52. pos2 = pos2 + 20
  53. end
  54. end
  55. clear = Instance.new("TextButton")
  56. clear.Parent = gu
  57. clear.Size = UDim2.new(0,120,0,50)
  58. clear.Position = UDim2.new(0,40,0,400)
  59. clear.BackgroundColor3 = Color3.new(0.1,0.1,0.5)
  60. clear.Text = "Clear"
  61. clear.FontSize = "Size12"
  62. clear.MouseButton1Click:connect(function()
  63. for i=1, #drawings do
  64. drawings[i]:remove()
  65. end
  66. end)
  67. mouse.Button1Down:connect(function()
  68. hold = true
  69. mouse.Move:connect(function()
  70. if hold == true then
  71. local k = Instance.new("Frame")
  72. k.Parent = gu
  73. k.Size = UDim2.new(0,size,0,size)
  74. k.BackgroundColor = BrickColor.new(color)
  75. k.BorderColor = k.BackgroundColor
  76. k.Position = UDim2.new(0,mouse.X - 2,0,mouse.Y - 22)
  77. table.insert(drawings,k)
  78. end
  79. end)
  80. end)
  81. mouse.Button1Up:connect(function()
  82. hold = false
  83. fra:remove()
  84. end)
  85. end
  86.  
  87. sp.Selected:connect(sel)
  88.  
  89.  
  90. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement