StenHisDirt

Paint Tool Complete

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