D0UG14S

Lumber tycoon 2 Paint script

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