Advertisement
StenHisDirt

Paint Tool Complete

Oct 21st, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.67 KB | None | 0 0
  1. -- Instances:
  2. local ColorPicker = Instance.new("ScreenGui")
  3. local ChangeColor = Instance.new("Frame")
  4. local CurrentColor = Instance.new("ImageButton")
  5. local Picker = Instance.new("ScrollingFrame")
  6. local Birch = Instance.new("ImageButton")
  7. local DropShadow = Instance.new("Frame")
  8. local Walnut = Instance.new("ImageButton")
  9. local DropShadow_2 = Instance.new("Frame")
  10. local Generic = Instance.new("ImageButton")
  11. local DropShadow_3 = Instance.new("Frame")
  12. local Oak = Instance.new("ImageButton")
  13. local DropShadow_4 = Instance.new("Frame")
  14. local Pine = Instance.new("ImageButton")
  15. local DropShadow_5 = Instance.new("Frame")
  16. local Palm = Instance.new("ImageButton")
  17. local DropShadow_6 = Instance.new("Frame")
  18. local Cherry = Instance.new("ImageButton")
  19. local DropShadow_7 = Instance.new("Frame")
  20. local Koa = Instance.new("ImageButton")
  21. local DropShadow_8 = Instance.new("Frame")
  22. local Volcano = Instance.new("ImageButton")
  23. local DropShadow_9 = Instance.new("Frame")
  24. local GreenSwampy = Instance.new("ImageButton")
  25. local DropShadow_10 = Instance.new("Frame")
  26. local GoldSwampy = Instance.new("ImageButton")
  27. local DropShadow_11 = Instance.new("Frame")
  28. local SpookyNeon = Instance.new("ImageButton")
  29. local DropShadow_12 = Instance.new("Frame")
  30. local SnowGlow = Instance.new("ImageButton")
  31. local DropShadow_13 = Instance.new("Frame")
  32. local Frost = Instance.new("ImageButton")
  33. local DropShadow_14 = Instance.new("Frame")
  34. local CaveCrawler = Instance.new("ImageButton")
  35. local DropShadow_15 = Instance.new("Frame")
  36. local LoneCave = Instance.new("ImageButton")
  37. local DropShadow_16 = Instance.new("Frame")
  38. local Spooky = Instance.new("ImageButton")
  39. local DropShadow_17 = Instance.new("Frame")
  40. local Grey = Instance.new("ImageButton")
  41. local DropShadow_18 = Instance.new("Frame")
  42. local GenericSpecial = Instance.new("ImageButton")
  43. local DropShadow_19 = Instance.new("Frame")
  44.  
  45. --Properties:
  46. ColorPicker.Name = "ColorPicker"
  47. ColorPicker.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  48.  
  49. ChangeColor.Name = "ChangeColor"
  50. ChangeColor.Parent = ColorPicker
  51. ChangeColor.BackgroundColor3 = Color3.new(0.176471, 0.254902, 0.427451)
  52. ChangeColor.BorderColor3 = Color3.new(0, 0, 0)
  53. ChangeColor.BorderSizePixel = 2
  54. ChangeColor.Position = UDim2.new(0, 10, 1, -110)
  55. ChangeColor.Size = UDim2.new(0, 100, 0, 100)
  56. ChangeColor.ZIndex = 2
  57. ColorPicker.Enabled = false
  58.  
  59. CurrentColor.Name = "CurrentColor"
  60. CurrentColor.Parent = ChangeColor
  61. CurrentColor.BackgroundColor3 = Color3.new(0.176471, 0.254902, 0.427451)
  62. CurrentColor.BorderColor3 = Color3.new(0, 0, 0)
  63. CurrentColor.BorderSizePixel = 2
  64. CurrentColor.Position = UDim2.new(0, 10, 0, 10)
  65. CurrentColor.Size = UDim2.new(0, 80, 0, 80)
  66. CurrentColor.ZIndex = 2
  67. CurrentColor.Image = "rbxassetid://2712547918"
  68. CurrentColor.ScaleType = Enum.ScaleType.Crop
  69.  
  70. Picker.Name = "Picker"
  71. Picker.Parent = ColorPicker
  72. Picker.BackgroundColor3 = Color3.new(0.176471, 0.254902, 0.427451)
  73. Picker.BorderColor3 = Color3.new(0, 0, 0)
  74. Picker.BorderSizePixel = 2
  75. Picker.Position = UDim2.new(0, 10, 1, -320)
  76. Picker.Size = UDim2.new(0, 100, 0, 200)
  77. Picker.CanvasPosition = Vector2.new(0, 700)
  78. Picker.CanvasSize = UDim2.new(0, 0, 0, 960)
  79. Picker.ScrollBarThickness = 7
  80. Picker.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
  81. Picker.Visible = false
  82.  
  83. Birch.Name = "Birch"
  84. Birch.Parent = Picker
  85. Birch.BackgroundColor3 = Color3.new(1, 1, 1)
  86. Birch.BorderColor3 = Color3.new(0, 0, 0)
  87. Birch.Position = UDim2.new(0, 10, 0, 5)
  88. Birch.Size = UDim2.new(0, 80, 0, 40)
  89. Birch.ZIndex = 3
  90. Birch.Image = "rbxassetid://2712547918"
  91. Birch.ScaleType = Enum.ScaleType.Crop
  92.  
  93. DropShadow.Name = "DropShadow"
  94. DropShadow.Parent = Birch
  95. DropShadow.BackgroundColor3 = Color3.new(0, 0, 0)
  96. DropShadow.BorderSizePixel = 0
  97. DropShadow.Position = UDim2.new(0, 4, 0, 4)
  98. DropShadow.Size = UDim2.new(1, 0, 1, 0)
  99. DropShadow.ZIndex = 2
  100.  
  101. Walnut.Name = "Walnut"
  102. Walnut.Parent = Picker
  103. Walnut.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Walnut.BorderColor3 = Color3.new(0, 0, 0)
  105. Walnut.Position = UDim2.new(0, 10, 0, 55)
  106. Walnut.Size = UDim2.new(0, 80, 0, 40)
  107. Walnut.ZIndex = 3
  108. Walnut.Image = "rbxassetid://2712559790"
  109. Walnut.ScaleType = Enum.ScaleType.Crop
  110.  
  111. DropShadow_2.Name = "DropShadow"
  112. DropShadow_2.Parent = Walnut
  113. DropShadow_2.BackgroundColor3 = Color3.new(0, 0, 0)
  114. DropShadow_2.BorderSizePixel = 0
  115. DropShadow_2.Position = UDim2.new(0, 4, 0, 4)
  116. DropShadow_2.Size = UDim2.new(1, 0, 1, 0)
  117. DropShadow_2.ZIndex = 2
  118.  
  119. Generic.Name = "Generic"
  120. Generic.Parent = Picker
  121. Generic.BackgroundColor3 = Color3.new(1, 1, 1)
  122. Generic.BorderColor3 = Color3.new(0, 0, 0)
  123. Generic.Position = UDim2.new(0, 10, 0, 105)
  124. Generic.Size = UDim2.new(0, 80, 0, 40)
  125. Generic.ZIndex = 3
  126. Generic.Image = "rbxassetid://2712568624"
  127. Generic.ScaleType = Enum.ScaleType.Crop
  128.  
  129. DropShadow_3.Name = "DropShadow"
  130. DropShadow_3.Parent = Generic
  131. DropShadow_3.BackgroundColor3 = Color3.new(0, 0, 0)
  132. DropShadow_3.BorderSizePixel = 0
  133. DropShadow_3.Position = UDim2.new(0, 4, 0, 4)
  134. DropShadow_3.Size = UDim2.new(1, 0, 1, 0)
  135. DropShadow_3.ZIndex = 2
  136.  
  137. Oak.Name = "Oak"
  138. Oak.Parent = Picker
  139. Oak.BackgroundColor3 = Color3.new(1, 1, 1)
  140. Oak.BorderColor3 = Color3.new(0, 0, 0)
  141. Oak.Position = UDim2.new(0, 10, 0, 155)
  142. Oak.Size = UDim2.new(0, 80, 0, 40)
  143. Oak.ZIndex = 3
  144. Oak.Image = "rbxassetid://2712579185"
  145. Oak.ScaleType = Enum.ScaleType.Crop
  146.  
  147. DropShadow_4.Name = "DropShadow"
  148. DropShadow_4.Parent = Oak
  149. DropShadow_4.BackgroundColor3 = Color3.new(0, 0, 0)
  150. DropShadow_4.BorderSizePixel = 0
  151. DropShadow_4.Position = UDim2.new(0, 4, 0, 4)
  152. DropShadow_4.Size = UDim2.new(1, 0, 1, 0)
  153. DropShadow_4.ZIndex = 2
  154.  
  155. Pine.Name = "Pine"
  156. Pine.Parent = Picker
  157. Pine.BackgroundColor3 = Color3.new(1, 1, 1)
  158. Pine.BorderColor3 = Color3.new(0, 0, 0)
  159. Pine.Position = UDim2.new(0, 10, 0, 205)
  160. Pine.Size = UDim2.new(0, 80, 0, 40)
  161. Pine.ZIndex = 3
  162. Pine.Image = "rbxassetid://2712591183"
  163. Pine.ScaleType = Enum.ScaleType.Crop
  164.  
  165. DropShadow_5.Name = "DropShadow"
  166. DropShadow_5.Parent = Pine
  167. DropShadow_5.BackgroundColor3 = Color3.new(0, 0, 0)
  168. DropShadow_5.BorderSizePixel = 0
  169. DropShadow_5.Position = UDim2.new(0, 4, 0, 4)
  170. DropShadow_5.Size = UDim2.new(1, 0, 1, 0)
  171. DropShadow_5.ZIndex = 2
  172.  
  173. Palm.Name = "Palm"
  174. Palm.Parent = Picker
  175. Palm.BackgroundColor3 = Color3.new(1, 1, 1)
  176. Palm.BorderColor3 = Color3.new(0, 0, 0)
  177. Palm.Position = UDim2.new(0, 10, 0, 255)
  178. Palm.Size = UDim2.new(0, 80, 0, 40)
  179. Palm.ZIndex = 3
  180. Palm.Image = "rbxassetid://2712597395"
  181. Palm.ScaleType = Enum.ScaleType.Crop
  182.  
  183. DropShadow_6.Name = "DropShadow"
  184. DropShadow_6.Parent = Palm
  185. DropShadow_6.BackgroundColor3 = Color3.new(0, 0, 0)
  186. DropShadow_6.BorderSizePixel = 0
  187. DropShadow_6.Position = UDim2.new(0, 4, 0, 4)
  188. DropShadow_6.Size = UDim2.new(1, 0, 1, 0)
  189. DropShadow_6.ZIndex = 2
  190.  
  191. Cherry.Name = "Cherry"
  192. Cherry.Parent = Picker
  193. Cherry.BackgroundColor3 = Color3.new(1, 1, 1)
  194. Cherry.BorderColor3 = Color3.new(0, 0, 0)
  195. Cherry.Position = UDim2.new(0, 10, 0, 305)
  196. Cherry.Size = UDim2.new(0, 80, 0, 40)
  197. Cherry.ZIndex = 3
  198. Cherry.Image = "rbxassetid://2712608599"
  199. Cherry.ScaleType = Enum.ScaleType.Crop
  200.  
  201. DropShadow_7.Name = "DropShadow"
  202. DropShadow_7.Parent = Cherry
  203. DropShadow_7.BackgroundColor3 = Color3.new(0, 0, 0)
  204. DropShadow_7.BorderSizePixel = 0
  205. DropShadow_7.Position = UDim2.new(0, 4, 0, 4)
  206. DropShadow_7.Size = UDim2.new(1, 0, 1, 0)
  207. DropShadow_7.ZIndex = 2
  208.  
  209. Koa.Name = "Koa"
  210. Koa.Parent = Picker
  211. Koa.BackgroundColor3 = Color3.new(1, 1, 1)
  212. Koa.BorderColor3 = Color3.new(0, 0, 0)
  213. Koa.Position = UDim2.new(0, 10, 0, 355)
  214. Koa.Size = UDim2.new(0, 80, 0, 40)
  215. Koa.ZIndex = 3
  216. Koa.Image = "rbxassetid://2712612798"
  217. Koa.ScaleType = Enum.ScaleType.Crop
  218.  
  219. DropShadow_8.Name = "DropShadow"
  220. DropShadow_8.Parent = Koa
  221. DropShadow_8.BackgroundColor3 = Color3.new(0, 0, 0)
  222. DropShadow_8.BorderSizePixel = 0
  223. DropShadow_8.Position = UDim2.new(0, 4, 0, 4)
  224. DropShadow_8.Size = UDim2.new(1, 0, 1, 0)
  225. DropShadow_8.ZIndex = 2
  226.  
  227. Volcano.Name = "Volcano"
  228. Volcano.Parent = Picker
  229. Volcano.BackgroundColor3 = Color3.new(1, 1, 1)
  230. Volcano.BorderColor3 = Color3.new(0, 0, 0)
  231. Volcano.Position = UDim2.new(0, 10, 0, 405)
  232. Volcano.Size = UDim2.new(0, 80, 0, 40)
  233. Volcano.ZIndex = 3
  234. Volcano.Image = "rbxassetid://2712618609"
  235. Volcano.ScaleType = Enum.ScaleType.Crop
  236.  
  237. DropShadow_9.Name = "DropShadow"
  238. DropShadow_9.Parent = Volcano
  239. DropShadow_9.BackgroundColor3 = Color3.new(0, 0, 0)
  240. DropShadow_9.BorderSizePixel = 0
  241. DropShadow_9.Position = UDim2.new(0, 4, 0, 4)
  242. DropShadow_9.Size = UDim2.new(1, 0, 1, 0)
  243. DropShadow_9.ZIndex = 2
  244.  
  245. GreenSwampy.Name = "GreenSwampy"
  246. GreenSwampy.Parent = Picker
  247. GreenSwampy.BackgroundColor3 = Color3.new(1, 1, 1)
  248. GreenSwampy.BorderColor3 = Color3.new(0, 0, 0)
  249. GreenSwampy.Position = UDim2.new(0, 10, 0, 455)
  250. GreenSwampy.Size = UDim2.new(0, 80, 0, 40)
  251. GreenSwampy.ZIndex = 3
  252. GreenSwampy.Image = "rbxassetid://2712623896"
  253. GreenSwampy.ScaleType = Enum.ScaleType.Crop
  254.  
  255. DropShadow_10.Name = "DropShadow"
  256. DropShadow_10.Parent = GreenSwampy
  257. DropShadow_10.BackgroundColor3 = Color3.new(0, 0, 0)
  258. DropShadow_10.BorderSizePixel = 0
  259. DropShadow_10.Position = UDim2.new(0, 4, 0, 4)
  260. DropShadow_10.Size = UDim2.new(1, 0, 1, 0)
  261. DropShadow_10.ZIndex = 2
  262.  
  263. GoldSwampy.Name = "GoldSwampy"
  264. GoldSwampy.Parent = Picker
  265. GoldSwampy.BackgroundColor3 = Color3.new(1, 1, 1)
  266. GoldSwampy.BorderColor3 = Color3.new(0, 0, 0)
  267. GoldSwampy.Position = UDim2.new(0, 10, 0, 505)
  268. GoldSwampy.Size = UDim2.new(0, 80, 0, 40)
  269. GoldSwampy.ZIndex = 3
  270. GoldSwampy.Image = "rbxassetid://2712631457"
  271. GoldSwampy.ScaleType = Enum.ScaleType.Crop
  272.  
  273. DropShadow_11.Name = "DropShadow"
  274. DropShadow_11.Parent = GoldSwampy
  275. DropShadow_11.BackgroundColor3 = Color3.new(0, 0, 0)
  276. DropShadow_11.BorderSizePixel = 0
  277. DropShadow_11.Position = UDim2.new(0, 4, 0, 4)
  278. DropShadow_11.Size = UDim2.new(1, 0, 1, 0)
  279. DropShadow_11.ZIndex = 2
  280.  
  281. SpookyNeon.Name = "SpookyNeon"
  282. SpookyNeon.Parent = Picker
  283. SpookyNeon.BackgroundColor3 = Color3.new(1, 1, 1)
  284. SpookyNeon.BorderColor3 = Color3.new(0, 0, 0)
  285. SpookyNeon.Position = UDim2.new(0, 10, 0, 555)
  286. SpookyNeon.Size = UDim2.new(0, 80, 0, 40)
  287. SpookyNeon.ZIndex = 3
  288. SpookyNeon.Image = "rbxassetid://2712700047"
  289. SpookyNeon.ScaleType = Enum.ScaleType.Crop
  290.  
  291. DropShadow_12.Name = "DropShadow"
  292. DropShadow_12.Parent = SpookyNeon
  293. DropShadow_12.BackgroundColor3 = Color3.new(0, 0, 0)
  294. DropShadow_12.BorderSizePixel = 0
  295. DropShadow_12.Position = UDim2.new(0, 4, 0, 4)
  296. DropShadow_12.Size = UDim2.new(1, 0, 1, 0)
  297. DropShadow_12.ZIndex = 2
  298.  
  299. SnowGlow.Name = "SnowGlow"
  300. SnowGlow.Parent = Picker
  301. SnowGlow.BackgroundColor3 = Color3.new(1, 1, 1)
  302. SnowGlow.BorderColor3 = Color3.new(0, 0, 0)
  303. SnowGlow.Position = UDim2.new(0, 10, 0, 605)
  304. SnowGlow.Size = UDim2.new(0, 80, 0, 40)
  305. SnowGlow.ZIndex = 3
  306. SnowGlow.Image = "rbxassetid://2712651454"
  307. SnowGlow.ScaleType = Enum.ScaleType.Crop
  308.  
  309. DropShadow_13.Name = "DropShadow"
  310. DropShadow_13.Parent = SnowGlow
  311. DropShadow_13.BackgroundColor3 = Color3.new(0, 0, 0)
  312. DropShadow_13.BorderSizePixel = 0
  313. DropShadow_13.Position = UDim2.new(0, 4, 0, 4)
  314. DropShadow_13.Size = UDim2.new(1, 0, 1, 0)
  315. DropShadow_13.ZIndex = 2
  316.  
  317. Frost.Name = "Frost"
  318. Frost.Parent = Picker
  319. Frost.BackgroundColor3 = Color3.new(1, 1, 1)
  320. Frost.BorderColor3 = Color3.new(0, 0, 0)
  321. Frost.Position = UDim2.new(0, 10, 0, 655)
  322. Frost.Size = UDim2.new(0, 80, 0, 40)
  323. Frost.ZIndex = 3
  324. Frost.Image = "rbxassetid://2712667804"
  325. Frost.ScaleType = Enum.ScaleType.Crop
  326.  
  327. DropShadow_14.Name = "DropShadow"
  328. DropShadow_14.Parent = Frost
  329. DropShadow_14.BackgroundColor3 = Color3.new(0, 0, 0)
  330. DropShadow_14.BorderSizePixel = 0
  331. DropShadow_14.Position = UDim2.new(0, 4, 0, 4)
  332. DropShadow_14.Size = UDim2.new(1, 0, 1, 0)
  333. DropShadow_14.ZIndex = 2
  334.  
  335. CaveCrawler.Name = "CaveCrawler"
  336. CaveCrawler.Parent = Picker
  337. CaveCrawler.BackgroundColor3 = Color3.new(1, 1, 1)
  338. CaveCrawler.BorderColor3 = Color3.new(0, 0, 0)
  339. CaveCrawler.Position = UDim2.new(0, 10, 0, 705)
  340. CaveCrawler.Size = UDim2.new(0, 80, 0, 40)
  341. CaveCrawler.ZIndex = 3
  342. CaveCrawler.Image = "rbxassetid://2712673980"
  343. CaveCrawler.ScaleType = Enum.ScaleType.Crop
  344.  
  345. DropShadow_15.Name = "DropShadow"
  346. DropShadow_15.Parent = CaveCrawler
  347. DropShadow_15.BackgroundColor3 = Color3.new(0, 0, 0)
  348. DropShadow_15.BorderSizePixel = 0
  349. DropShadow_15.Position = UDim2.new(0, 4, 0, 4)
  350. DropShadow_15.Size = UDim2.new(1, 0, 1, 0)
  351. DropShadow_15.ZIndex = 2
  352.  
  353. LoneCave.Name = "LoneCave"
  354. LoneCave.Parent = Picker
  355. LoneCave.BackgroundColor3 = Color3.new(1, 1, 1)
  356. LoneCave.BorderColor3 = Color3.new(0, 0, 0)
  357. LoneCave.Position = UDim2.new(0, 10, 0, 755)
  358. LoneCave.Size = UDim2.new(0, 80, 0, 40)
  359. LoneCave.ZIndex = 3
  360. LoneCave.Image = "rbxassetid://2712693147"
  361. LoneCave.ScaleType = Enum.ScaleType.Crop
  362.  
  363. DropShadow_16.Name = "DropShadow"
  364. DropShadow_16.Parent = LoneCave
  365. DropShadow_16.BackgroundColor3 = Color3.new(0, 0, 0)
  366. DropShadow_16.BorderSizePixel = 0
  367. DropShadow_16.Position = UDim2.new(0, 4, 0, 4)
  368. DropShadow_16.Size = UDim2.new(1, 0, 1, 0)
  369. DropShadow_16.ZIndex = 2
  370.  
  371. Spooky.Name = "Spooky"
  372. Spooky.Parent = Picker
  373. Spooky.BackgroundColor3 = Color3.new(1, 1, 1)
  374. Spooky.BorderColor3 = Color3.new(0, 0, 0)
  375. Spooky.Position = UDim2.new(0, 10, 0, 805)
  376. Spooky.Size = UDim2.new(0, 80, 0, 40)
  377. Spooky.ZIndex = 3
  378. Spooky.Image = "rbxassetid://2712696822"
  379. Spooky.ScaleType = Enum.ScaleType.Crop
  380.  
  381. DropShadow_17.Name = "DropShadow"
  382. DropShadow_17.Parent = Spooky
  383. DropShadow_17.BackgroundColor3 = Color3.new(0, 0, 0)
  384. DropShadow_17.BorderSizePixel = 0
  385. DropShadow_17.Position = UDim2.new(0, 4, 0, 4)
  386. DropShadow_17.Size = UDim2.new(1, 0, 1, 0)
  387. DropShadow_17.ZIndex = 2
  388.  
  389. Grey.Name = "Grey"
  390. Grey.Parent = Picker
  391. Grey.BackgroundColor3 = Color3.new(1, 1, 1)
  392. Grey.BorderColor3 = Color3.new(0, 0, 0)
  393. Grey.Position = UDim2.new(0, 10, 0, 855)
  394. Grey.Size = UDim2.new(0, 80, 0, 40)
  395. Grey.ZIndex = 3
  396. Grey.Image = "rbxassetid://924320031"
  397. Grey.ScaleType = Enum.ScaleType.Crop
  398.  
  399. DropShadow_18.Name = "DropShadow"
  400. DropShadow_18.Parent = Grey
  401. DropShadow_18.BackgroundColor3 = Color3.new(0, 0, 0)
  402. DropShadow_18.BorderSizePixel = 0
  403. DropShadow_18.Position = UDim2.new(0, 4, 0, 4)
  404. DropShadow_18.Size = UDim2.new(1, 0, 1, 0)
  405. DropShadow_18.ZIndex = 2
  406.  
  407. GenericSpecial.Name = "GenericSpecial"
  408. GenericSpecial.Parent = Picker
  409. GenericSpecial.BackgroundColor3 = Color3.new(1, 1, 1)
  410. GenericSpecial.BorderColor3 = Color3.new(0, 0, 0)
  411. GenericSpecial.Position = UDim2.new(0, 10, 0, 910)
  412. GenericSpecial.Size = UDim2.new(0, 80, 0, 40)
  413. GenericSpecial.ZIndex = 3
  414. GenericSpecial.Image = "rbxassetid://2712639396"
  415. GenericSpecial.ScaleType = Enum.ScaleType.Crop
  416.  
  417. DropShadow_19.Name = "DropShadow"
  418. DropShadow_19.Parent = GenericSpecial
  419. DropShadow_19.BackgroundColor3 = Color3.new(0, 0, 0)
  420. DropShadow_19.BorderSizePixel = 0
  421. DropShadow_19.Position = UDim2.new(0, 4, 0, 4)
  422. DropShadow_19.Size = UDim2.new(1, 0, 1, 0)
  423. DropShadow_19.ZIndex = 2
  424.  
  425. -- Scripts:
  426. woodtype = "Birch"
  427.  
  428. local tool = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
  429. tool.RequiresHandle = false
  430. --tool.RobloxLocked = true
  431. tool.Name = "Paint"
  432. tool.ToolTip = "Changes A Stucture's Wood Type"
  433. tool.Equipped:connect(function(Mouse)
  434. ColorPicker.Enabled = true
  435. Mouse.Button1Down:connect(function()
  436. if Mouse.Target.Parent:FindFirstChild("Type") or Mouse.Target.Parent:FindFirstChild("BlueprintWoodClass") then
  437. local Cframe
  438. if Mouse.Target.Parent:FindFirstChild("MainCFrame") then
  439. Cframe = Mouse.Target.Parent.MainCFrame.Value
  440. else
  441. Cframe = Mouse.Target.Parent.PrimaryPart.CFrame
  442. end
  443. if Mouse.Target.Parent ~= nil then
  444. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(Mouse.Target.Parent.ItemName.Value, Cframe, game.Players.LocalPlayer, woodtype, Mouse.Target.Parent, false)
  445. end
  446. else
  447. --do nothing
  448. end
  449. end)
  450. end)
  451.  
  452. tool.Unequipped:connect(function(mouse)
  453. ColorPicker.Enabled = false
  454. end)
  455.  
  456.  
  457. Birch.MouseButton1Click:Connect(function()
  458. CurrentColor.Image = Birch.Image
  459. woodtype = "Birch"
  460. end)
  461.  
  462. Walnut.MouseButton1Click:Connect(function()
  463. CurrentColor.Image = Walnut.Image
  464. woodtype = "Walnut"
  465. end)
  466.  
  467. Generic.MouseButton1Click:Connect(function()
  468. CurrentColor.Image = Generic.Image
  469. woodtype = "Generic"
  470. end)
  471.  
  472. Oak.MouseButton1Click:Connect(function()
  473. CurrentColor.Image = Oak.Image
  474. woodtype = "Oak"
  475. end)
  476.  
  477. Pine.MouseButton1Click:Connect(function()
  478. CurrentColor.Image = Pine.Image
  479. woodtype = "Pine"
  480. end)
  481.  
  482. Palm.MouseButton1Click:Connect(function()
  483. CurrentColor.Image = Palm.Image
  484. woodtype = "Palm"
  485. end)
  486.  
  487. Koa.MouseButton1Click:Connect(function()
  488. CurrentColor.Image = Koa.Image
  489. woodtype = "Koa"
  490. end)
  491.  
  492. Cherry.MouseButton1Click:Connect(function()
  493. CurrentColor.Image = Cherry.Image
  494. woodtype = "Cherry"
  495. end)
  496.  
  497. Volcano.MouseButton1Click:Connect(function()
  498. CurrentColor.Image = Volcano.Image
  499. woodtype = "Volcano"
  500. end)
  501.  
  502. GreenSwampy.MouseButton1Click:Connect(function()
  503. CurrentColor.Image = GreenSwampy.Image
  504. woodtype = "GreenSwampy"
  505. end)
  506.  
  507. GoldSwampy.MouseButton1Click:Connect(function()
  508. CurrentColor.Image = GoldSwampy.Image
  509. woodtype = "GoldSwampy"
  510. end)
  511.  
  512. SpookyNeon.MouseButton1Click:Connect(function()
  513. CurrentColor.Image = SpookyNeon.Image
  514. woodtype = "SpookyNeon"
  515. end)
  516.  
  517. SnowGlow.MouseButton1Click:Connect(function()
  518. CurrentColor.Image = SnowGlow.Image
  519. woodtype = "SnowGlow"
  520. end)
  521.  
  522. Frost.MouseButton1Click:Connect(function()
  523. CurrentColor.Image = Frost.Image
  524. woodtype = "Frost"
  525. end)
  526.  
  527. CaveCrawler.MouseButton1Click:Connect(function()
  528. CurrentColor.Image = CaveCrawler.Image
  529. woodtype = "CaveCrawler"
  530. end)
  531.  
  532. LoneCave.MouseButton1Click:Connect(function()
  533. CurrentColor.Image = LoneCave.Image
  534. woodtype = "LoneCave"
  535. end)
  536.  
  537. Spooky.MouseButton1Click:Connect(function()
  538. CurrentColor.Image = Spooky.Image
  539. woodtype = "Spooky"
  540. end)
  541.  
  542. Grey.MouseButton1Click:Connect(function()
  543. CurrentColor.Image = Grey.Image
  544. woodtype = nil
  545. end)
  546.  
  547. GenericSpecial.MouseButton1Click:Connect(function()
  548. CurrentColor.Image = GenericSpecial.Image
  549. woodtype = "GenericSpecial"
  550. end)
  551.  
  552. --bring up menu
  553. CurrentColor.MouseButton1Click:Connect(function()
  554. if Picker.Visible == false then
  555. Picker.Visible = true
  556. else
  557. Picker.Visible = false
  558. end
  559. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement