FurkyYT

Lumber tycoon 2

Feb 5th, 2019
2,234
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Credits To Script Founder
  2. -- Gui Made By: Script Hunter - Anwarun
  3. -- Subscribe: AnwarunYt
  4.  
  5. Mouse = game.Players.LocalPlayer:GetMouse()
  6.  
  7. Client = game.ReplicatedStorage.Interaction.ClientSetListPlayer
  8. players = game.Players
  9. for i, v in pairs(players:GetPlayers()) do
  10. if v.Name ~= players.LocalPlayer.Name then
  11. Client:InvokeServer(players.LocalPlayer.BlacklistFolder, v, true)
  12. end
  13. end
  14. players.PlayerAdded:connect(function(plr)
  15. Client:InvokeServer(players.LocalPlayer.BlacklistFolder, plr, true)
  16. end)
  17.  
  18. -- Objects
  19.  
  20. local plr = game:GetService('Players').LocalPlayer.Character
  21. local Lt2 = Instance.new("ScreenGui")
  22. local Frame = Instance.new("Frame")
  23. local Title = Instance.new("TextLabel")
  24. local Walk = Instance.new("TextButton")
  25. local Dupe = Instance.new("TextButton")
  26. local Tpwood = Instance.new("TextButton")
  27. local GoldAxe = Instance.new("TextButton")
  28. local Jump = Instance.new("TextButton")
  29. local WallHax = Instance.new("TextButton")
  30. local Teleportt = Instance.new("TextButton")
  31. local Wnum = Instance.new("TextBox")
  32. local Jnum = Instance.new("TextBox")
  33. local Tpframe = Instance.new("Frame")
  34. local Tittle = Instance.new("TextLabel")
  35. local LolF = Instance.new("ScrollingFrame")
  36. local plot = Instance.new("TextButton")
  37. local woodrus = Instance.new("TextButton")
  38. local spawn = Instance.new("TextButton")
  39. local volcano = Instance.new("TextButton")
  40. local swamp = Instance.new("TextButton")
  41. local palm = Instance.new("TextButton")
  42. local cave = Instance.new("TextButton")
  43. local cars = Instance.new("TextButton")
  44. local strangemen = Instance.new("TextButton")
  45. local theden = Instance.new("TextButton")
  46. local Color = Instance.new("Frame")
  47. local titttle = Instance.new("TextLabel")
  48. local Grey = Instance.new("TextButton")
  49. local Phantom = Instance.new("TextButton")
  50. local Spooky = Instance.new("TextButton")
  51. local Blue = Instance.new("TextButton")
  52. local LightSpooky = Instance.new("TextButton")
  53. local X = Instance.new("TextButton")
  54.  
  55. -- Properties
  56.  
  57. Lt2.Name = "Lt2"
  58. Lt2.Parent = game.CoreGui
  59. Lt2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  60.  
  61. Frame.Parent = Lt2
  62. Frame.Active = true
  63. Frame.Draggable = true
  64. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  65. Frame.BackgroundTransparency = 0.10000000149012
  66. Frame.Position = UDim2.new(0.225425944, 0, 0.291505814, 0)
  67. Frame.Size = UDim2.new(0, 419, 0, 216)
  68.  
  69. Title.Name = "Title"
  70. Title.Parent = Frame
  71. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  72. Title.BorderColor3 = Color3.new(1, 1, 1)
  73. Title.BorderSizePixel = 2
  74. Title.Size = UDim2.new(0, 419, 0, 23)
  75. Title.Font = Enum.Font.GothamBold
  76. Title.Text = "Lt2 Gui"
  77. Title.TextColor3 = Color3.new(0, 0, 0)
  78. Title.TextSize = 20
  79.  
  80. Walk.Name = "Walk"
  81. Walk.Parent = Frame
  82. Walk.BackgroundColor3 = Color3.new(1, 1, 1)
  83. Walk.Position = UDim2.new(0.0238663331, 0, 0.833333373, 0)
  84. Walk.Size = UDim2.new(0, 154, 0, 28)
  85. Walk.Font = Enum.Font.GothamBold
  86. Walk.Text = "Walk Speed"
  87. Walk.TextColor3 = Color3.new(0, 0, 0)
  88. Walk.TextSize = 20
  89.  
  90. Dupe.Name = "Dupe"
  91. Dupe.Parent = Frame
  92. Dupe.BackgroundColor3 = Color3.new(1, 1, 1)
  93. Dupe.Position = UDim2.new(0.050119333, 0, 0.152777776, 0)
  94. Dupe.Size = UDim2.new(0, 375, 0, 26)
  95. Dupe.Font = Enum.Font.GothamBold
  96. Dupe.Text = "Dupe"
  97. Dupe.TextColor3 = Color3.new(0, 0, 0)
  98. Dupe.TextSize = 20
  99.  
  100. Tpwood.Name = "Tpwood"
  101. Tpwood.Parent = Frame
  102. Tpwood.BackgroundColor3 = Color3.new(1, 1, 1)
  103. Tpwood.Position = UDim2.new(0.050119333, 0, 0.310185194, 0)
  104. Tpwood.Size = UDim2.new(0, 176, 0, 28)
  105. Tpwood.Font = Enum.Font.GothamBold
  106. Tpwood.Text = "Bring Wood"
  107. Tpwood.TextColor3 = Color3.new(0, 0, 0)
  108. Tpwood.TextSize = 20
  109.  
  110. GoldAxe.Name = "GoldAxe"
  111. GoldAxe.Parent = Frame
  112. GoldAxe.BackgroundColor3 = Color3.new(1, 1, 1)
  113. GoldAxe.Position = UDim2.new(0.52505964, 0, 0.310185194, 0)
  114. GoldAxe.Size = UDim2.new(0, 176, 0, 28)
  115. GoldAxe.Font = Enum.Font.GothamBold
  116. GoldAxe.Text = "Gold Axe"
  117. GoldAxe.TextColor3 = Color3.new(0, 0, 0)
  118. GoldAxe.TextSize = 20
  119.  
  120. Jump.Name = "Jump"
  121. Jump.Parent = Frame
  122. Jump.BackgroundColor3 = Color3.new(1, 1, 1)
  123. Jump.Position = UDim2.new(0.613365114, 0, 0.833333373, 0)
  124. Jump.Size = UDim2.new(0, 154, 0, 28)
  125. Jump.Font = Enum.Font.GothamBold
  126. Jump.Text = "Jump Hack"
  127. Jump.TextColor3 = Color3.new(0, 0, 0)
  128. Jump.TextSize = 20
  129.  
  130. WallHax.Name = "WallHax"
  131. WallHax.Parent = Frame
  132. WallHax.BackgroundColor3 = Color3.new(1, 1, 1)
  133. WallHax.Position = UDim2.new(0.52505964, 0, 0.490740746, 0)
  134. WallHax.Size = UDim2.new(0, 176, 0, 28)
  135. WallHax.Font = Enum.Font.GothamBold
  136. WallHax.Text = "Wall Color Hack"
  137. WallHax.TextColor3 = Color3.new(0, 0, 0)
  138. WallHax.TextSize = 20
  139.  
  140. Teleportt.Name = "Teleportt"
  141. Teleportt.Parent = Frame
  142. Teleportt.BackgroundColor3 = Color3.new(1, 1, 1)
  143. Teleportt.Position = UDim2.new(0.0501193106, 0, 0.490740746, 0)
  144. Teleportt.Size = UDim2.new(0, 176, 0, 28)
  145. Teleportt.Font = Enum.Font.GothamBold
  146. Teleportt.Text = "Teleport"
  147. Teleportt.TextColor3 = Color3.new(0, 0, 0)
  148. Teleportt.TextSize = 20
  149.  
  150. Wnum.Name = "Wnum"
  151. Wnum.Parent = Frame
  152. Wnum.BackgroundColor3 = Color3.new(1, 1, 1)
  153. Wnum.Position = UDim2.new(0.0548925996, 0, 0.703703701, 0)
  154. Wnum.Size = UDim2.new(0, 128, 0, 22)
  155. Wnum.Font = Enum.Font.GothamBold
  156. Wnum.Text = "15"
  157. Wnum.TextColor3 = Color3.new(0, 0, 0)
  158. Wnum.TextSize = 20
  159.  
  160. Jnum.Name = "Jnum"
  161. Jnum.Parent = Frame
  162. Jnum.BackgroundColor3 = Color3.new(1, 1, 1)
  163. Jnum.Position = UDim2.new(0.644391418, 0, 0.703703701, 0)
  164. Jnum.Size = UDim2.new(0, 128, 0, 22)
  165. Jnum.Font = Enum.Font.GothamBold
  166. Jnum.Text = "50"
  167. Jnum.TextColor3 = Color3.new(0, 0, 0)
  168. Jnum.TextSize = 20
  169.  
  170. Tpframe.Name = "Tpframe"
  171. Tpframe.Parent = Frame
  172. Tpframe.Visible = false
  173. Tpframe.BackgroundColor3 = Color3.new(1, 1, 1)
  174. Tpframe.BorderColor3 = Color3.new(1, 1, 1)
  175. Tpframe.BorderSizePixel = 2
  176. Tpframe.Position = UDim2.new(-0.279236287, 0, 0, 0)
  177. Tpframe.Size = UDim2.new(0, 108, 0, 216)
  178.  
  179. Tittle.Name = "Tittle"
  180. Tittle.Parent = Tpframe
  181. Tittle.BackgroundColor3 = Color3.new(1, 1, 1)
  182. Tittle.BorderSizePixel = 2
  183. Tittle.Position = UDim2.new(7.06425425e-08, 0, 0, 0)
  184. Tittle.Size = UDim2.new(0, 108, 0, 23)
  185. Tittle.Font = Enum.Font.GothamBold
  186. Tittle.Text = "Teleport"
  187. Tittle.TextColor3 = Color3.new(0, 0, 0)
  188. Tittle.TextSize = 20
  189.  
  190. LolF.Name = "LolF"
  191. LolF.Parent = Tpframe
  192. LolF.BackgroundColor3 = Color3.new(0, 0, 0)
  193. LolF.BorderSizePixel = 0
  194. LolF.Position = UDim2.new(0, 0, 0.106481485, 0)
  195. LolF.Size = UDim2.new(0, 108, 0, 193)
  196.  
  197. plot.Name = "plot"
  198. plot.Parent = LolF
  199. plot.BackgroundColor3 = Color3.new(1, 1, 1)
  200. plot.Position = UDim2.new(0.0648148805, 0, 0.0279903859, 0)
  201. plot.Size = UDim2.new(0, 81, 0, 23)
  202. plot.Font = Enum.Font.GothamBold
  203. plot.Text = "You Base"
  204. plot.TextColor3 = Color3.new(0, 0, 0)
  205. plot.TextSize = 14
  206.  
  207. woodrus.Name = "woodrus"
  208. woodrus.Parent = LolF
  209. woodrus.BackgroundColor3 = Color3.new(1, 1, 1)
  210. woodrus.Position = UDim2.new(0.0648148805, 0, 0.0997496471, 0)
  211. woodrus.Size = UDim2.new(0, 81, 0, 23)
  212. woodrus.Font = Enum.Font.GothamBold
  213. woodrus.Text = "WoodRus"
  214. woodrus.TextColor3 = Color3.new(0, 0, 0)
  215. woodrus.TextSize = 14
  216.  
  217. spawn.Name = "spawn"
  218. spawn.Parent = LolF
  219. spawn.BackgroundColor3 = Color3.new(1, 1, 1)
  220. spawn.Position = UDim2.new(0.0648148805, 0, 0.169194102, 0)
  221. spawn.Size = UDim2.new(0, 81, 0, 23)
  222. spawn.Font = Enum.Font.GothamBold
  223. spawn.Text = "Spawn"
  224. spawn.TextColor3 = Color3.new(0, 0, 0)
  225. spawn.TextSize = 14
  226.  
  227. volcano.Name = "volcano"
  228. volcano.Parent = LolF
  229. volcano.BackgroundColor3 = Color3.new(1, 1, 1)
  230. volcano.Position = UDim2.new(0.0648148805, 0, 0.243268177, 0)
  231. volcano.Size = UDim2.new(0, 81, 0, 23)
  232. volcano.Font = Enum.Font.GothamBold
  233. volcano.Text = "Volcano"
  234. volcano.TextColor3 = Color3.new(0, 0, 0)
  235. volcano.TextSize = 14
  236.  
  237. swamp.Name = "swamp"
  238. swamp.Parent = LolF
  239. swamp.BackgroundColor3 = Color3.new(1, 1, 1)
  240. swamp.Position = UDim2.new(0.0648148805, 0, 0.308082998, 0)
  241. swamp.Size = UDim2.new(0, 81, 0, 23)
  242. swamp.Font = Enum.Font.GothamBold
  243. swamp.Text = "Swamp"
  244. swamp.TextColor3 = Color3.new(0, 0, 0)
  245. swamp.TextSize = 14
  246.  
  247. palm.Name = "palm"
  248. palm.Parent = LolF
  249. palm.BackgroundColor3 = Color3.new(1, 1, 1)
  250. palm.Position = UDim2.new(0.0648148805, 0, 0.372897804, 0)
  251. palm.Size = UDim2.new(0, 81, 0, 23)
  252. palm.Font = Enum.Font.GothamBold
  253. palm.Text = "Palm"
  254. palm.TextColor3 = Color3.new(0, 0, 0)
  255. palm.TextSize = 14
  256.  
  257. cave.Name = "cave"
  258. cave.Parent = LolF
  259. cave.BackgroundColor3 = Color3.new(1, 1, 1)
  260. cave.Position = UDim2.new(0.0648148805, 0, 0.444657058, 0)
  261. cave.Size = UDim2.new(0, 81, 0, 23)
  262. cave.Font = Enum.Font.GothamBold
  263. cave.Text = "Cave"
  264. cave.TextColor3 = Color3.new(0, 0, 0)
  265. cave.TextSize = 14
  266.  
  267. cars.Name = "cars"
  268. cars.Parent = LolF
  269. cars.BackgroundColor3 = Color3.new(1, 1, 1)
  270. cars.Position = UDim2.new(0.0648148805, 0, 0.514101505, 0)
  271. cars.Size = UDim2.new(0, 81, 0, 23)
  272. cars.Font = Enum.Font.GothamBold
  273. cars.Text = "Boxed Cars"
  274. cars.TextColor3 = Color3.new(0, 0, 0)
  275. cars.TextSize = 14
  276.  
  277. strangemen.Name = "strangemen"
  278. strangemen.Parent = LolF
  279. strangemen.BackgroundColor3 = Color3.new(1, 1, 1)
  280. strangemen.Position = UDim2.new(0.0648148805, 0, 0.583545923, 0)
  281. strangemen.Size = UDim2.new(0, 81, 0, 23)
  282. strangemen.Font = Enum.Font.GothamBold
  283. strangemen.Text = "Strange Man"
  284. strangemen.TextColor3 = Color3.new(0, 0, 0)
  285. strangemen.TextSize = 14
  286.  
  287. theden.Name = "theden"
  288. theden.Parent = LolF
  289. theden.BackgroundColor3 = Color3.new(1, 1, 1)
  290. theden.Position = UDim2.new(0.0648148805, 0, 0.650675535, 0)
  291. theden.Size = UDim2.new(0, 81, 0, 23)
  292. theden.Font = Enum.Font.GothamBold
  293. theden.Text = "The Den"
  294. theden.TextColor3 = Color3.new(0, 0, 0)
  295. theden.TextSize = 14
  296. function Create(cls,props)
  297. local inst = Instance.new(cls)
  298. for i,v in pairs(props) do
  299. inst[i] = v
  300. end
  301. return inst
  302. end
  303. Color.Name = "Color"
  304. Color.Visible = false
  305. Color.Parent = Frame
  306. Color.BackgroundColor3 = Color3.new(1, 1, 1)
  307. Color.BorderColor3 = Color3.new(1, 1, 1)
  308. Color.BorderSizePixel = 2
  309. Color.Position = UDim2.new(1.02625299, 0, 0, 0)
  310. Color.Size = UDim2.new(0, 103, 0, 216)
  311.  
  312. titttle.Name = "titttle"
  313. titttle.Parent = Color
  314. titttle.BackgroundColor3 = Color3.new(1, 1, 1)
  315. titttle.BorderSizePixel = 2
  316. titttle.Size = UDim2.new(0, 103, 0, 23)
  317. titttle.Font = Enum.Font.GothamBold
  318. titttle.Text = "Color Hax"
  319. titttle.TextColor3 = Color3.new(0, 0, 0)
  320. titttle.TextSize = 14
  321. local service = setmetatable({}, {
  322. __index = function(t, k)
  323. return game:GetService(k)
  324. end
  325. })
  326. Grey.Name = "Grey"
  327. Grey.Parent = Color
  328. Grey.BackgroundColor3 = Color3.new(1, 1, 1)
  329. Grey.BorderColor3 = Color3.new(0, 0, 0)
  330. Grey.BorderSizePixel = 2
  331. Grey.Position = UDim2.new(0.0679611638, 0, 0.152777776, 0)
  332. Grey.Size = UDim2.new(0, 89, 0, 26)
  333. Grey.Font = Enum.Font.GothamBold
  334. Grey.Text = "Grey"
  335. Grey.TextColor3 = Color3.new(0, 0, 0)
  336. Grey.TextSize = 20
  337.  
  338. Phantom.Name = "Phantom"
  339. Phantom.Parent = Color
  340. Phantom.BackgroundColor3 = Color3.new(1, 1, 1)
  341. Phantom.BorderColor3 = Color3.new(0, 0, 0)
  342. Phantom.BorderSizePixel = 2
  343. Phantom.Position = UDim2.new(0.0679611638, 0, 0.319444448, 0)
  344. Phantom.Size = UDim2.new(0, 89, 0, 26)
  345. Phantom.Font = Enum.Font.GothamBold
  346. Phantom.Text = "Phantom"
  347. Phantom.TextColor3 = Color3.new(0, 0, 0)
  348. Phantom.TextSize = 20
  349.  
  350. Spooky.Name = "Spooky"
  351. Spooky.Parent = Color
  352. Spooky.BackgroundColor3 = Color3.new(1, 1, 1)
  353. Spooky.BorderColor3 = Color3.new(0, 0, 0)
  354. Spooky.BorderSizePixel = 2
  355. Spooky.Position = UDim2.new(0.0679611638, 0, 0.490740746, 0)
  356. Spooky.Size = UDim2.new(0, 89, 0, 26)
  357. Spooky.Font = Enum.Font.GothamBold
  358. Spooky.Text = "Spooky"
  359. Spooky.TextColor3 = Color3.new(0, 0, 0)
  360. Spooky.TextSize = 20
  361.  
  362. Blue.Name = "Blue"
  363. Blue.Parent = Color
  364. Blue.BackgroundColor3 = Color3.new(1, 1, 1)
  365. Blue.BorderColor3 = Color3.new(0, 0, 0)
  366. Blue.BorderSizePixel = 2
  367. Blue.Position = UDim2.new(0.0679611638, 0, 0.652777791, 0)
  368. Blue.Size = UDim2.new(0, 89, 0, 26)
  369. Blue.Font = Enum.Font.GothamBold
  370. Blue.Text = "Blue"
  371. Blue.TextColor3 = Color3.new(0, 0, 0)
  372. Blue.TextSize = 20
  373.  
  374. LightSpooky.Name = "LightSpooky"
  375. LightSpooky.Parent = Color
  376. LightSpooky.BackgroundColor3 = Color3.new(1, 1, 1)
  377. LightSpooky.BorderColor3 = Color3.new(0, 0, 0)
  378. LightSpooky.BorderSizePixel = 2
  379. LightSpooky.Position = UDim2.new(0.0679611638, 0, 0.828703701, 0)
  380. LightSpooky.Size = UDim2.new(0, 89, 0, 26)
  381. LightSpooky.Font = Enum.Font.GothamBold
  382. LightSpooky.Text = "L Spooky"
  383. LightSpooky.TextColor3 = Color3.new(0, 0, 0)
  384. LightSpooky.TextSize = 20
  385.  
  386. X.Name = "X"
  387. X.Parent = Frame
  388. X.BackgroundColor3 = Color3.new(1, 0, 0)
  389. X.BorderColor3 = Color3.new(1, 0, 0)
  390. X.Position = UDim2.new(0.930787563, 0, -0.00925925933, 0)
  391. X.Size = UDim2.new(0, 29, 0, 26)
  392. X.Font = Enum.Font.GothamBold
  393. X.Text = "X"
  394. X.TextColor3 = Color3.new(1, 1, 1)
  395. X.TextSize = 20
  396.  
  397. --U Is Gay
  398.  
  399. Walk.MouseButton1Click:connect(function()
  400. while wait() do
  401. plr.Humanoid.WalkSpeed = Wnum.Text
  402. end
  403. end)
  404.  
  405. Jump.MouseButton1Click:connect(function()
  406. while wait() do
  407. plr.Humanoid.JumpPower = Jnum.Text
  408. end
  409. end)
  410.  
  411. X.MouseButton1Click:connect(function()
  412. Lt2:Destroy()
  413. end)
  414.  
  415. Tpwood.MouseButton1Click:connect(function()
  416. for _, Log in pairs(service.Workspace.LogModels:GetChildren()) do
  417. if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
  418. if Log.Owner.Value == service.Players.LocalPlayer then
  419. Log:MoveTo(service.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, 20, 0))
  420. for i=1,100 do
  421. service.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log)
  422. end
  423. end
  424. end
  425. end
  426. end)
  427.  
  428. buka = false
  429. WallHax.MouseButton1Click:connect(function()
  430. if buka == true then
  431. buka = false
  432. Color.Visible = false
  433. else
  434. buka = true
  435. Color.Visible = true
  436. end
  437. end)
  438.  
  439. buka1 = false
  440. Teleportt.MouseButton1Click:connect(function()
  441. if buka1 == true then
  442. buka1 = false
  443. Tpframe.Visible = false
  444. else
  445. buka1 = true
  446. Tpframe.Visible = true
  447. end
  448. end)
  449.  
  450. Duping = false
  451. Dupe.MouseButton1Click:connect(function()
  452. local slott = game:GetService('Players').LocalPlayer.CurrentSaveSlot
  453. if Duping == true then
  454. slott.RobloxLocked = false
  455. Duping = false
  456. Dupe.BackgroundColor3 = Color3.new(255, 255, 255)
  457. else
  458. Duping = true
  459. if slott.Value == -1 then
  460. slott.RobloxLocked = true
  461. Dupe.BackgroundColor3 = Color3.new(0, 255, 0)
  462. end
  463. end
  464. end)
  465.  
  466. plot.MouseButton1Click:connect(function()
  467. local bch = game:GetService('Players').LocalPlayer
  468. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  469. if v.Owner.Value == bch then
  470. plr.HumanoidRootPart.CFrame = v.OriginSquare.CFrame + Vector3.new(0,10,0)
  471. end
  472. end
  473. end)
  474.  
  475. woodrus.MouseButton1Click:connect(function()
  476. plr.HumanoidRootPart.CFrame = CFrame.new(265, 5, 57)
  477. end)
  478.  
  479. spawn.MouseButton1Click:connect(function()
  480. plr.HumanoidRootPart.CFrame = CFrame.new(155, 5, 74)
  481. end)
  482.  
  483. local tp = plr.HumanoidRootPart
  484.  
  485. volcano.MouseButton1Click:connect(function()
  486. tp.CFrame = CFrame.new(-1585, 625, 1140)
  487. end)
  488.  
  489. palm.MouseButton1Click:connect(function()
  490. tp.CFrame = CFrame.new(2549, 5, -42)
  491. end)
  492.  
  493. cars.MouseButton1Click:connect(function()
  494. tp.CFrame = CFrame.new(509, 5.2, -1463)
  495. end)
  496.  
  497. cave.MouseButton1Click:connect(function()
  498. tp.CFrame = CFrame.new(3581, -177, 430)
  499. end)
  500.  
  501. swamp.MouseButton1Click:connect(function()
  502. tp.CFrame = CFrame.new(-1209, 138, -801)
  503. end)
  504.  
  505. strangemen.MouseButton1Click:connect(function()
  506. tp.CFrame = CFrame.new(1061, 20, 1131)
  507. end)
  508.  
  509. theden.MouseButton1Click:connect(function()
  510. tp.CFrame = CFrame.new(323, 49, 1930)
  511. end)
  512.  
  513. -- ColorHax Script
  514.  
  515. woodtype = "Birch"
  516.  
  517. local tool = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
  518. tool.RequiresHandle = false
  519. --tool.RobloxLocked = true
  520. tool.Name = "Paint"
  521. tool.ToolTip = "Changes A Stucture's Wood Type"
  522. tool.Equipped:connect(function(Mouse)
  523. Mouse.Button1Down:connect(function()
  524. if Mouse.Target.Parent:FindFirstChild("Type") or Mouse.Target.Parent:FindFirstChild("BlueprintWoodClass") then
  525. local Cframe
  526. if Mouse.Target.Parent:FindFirstChild("MainCFrame") then
  527. Cframe = Mouse.Target.Parent.MainCFrame.Value
  528. else
  529. Cframe = Mouse.Target.Parent.PrimaryPart.CFrame
  530. end
  531. if Mouse.Target.Parent ~= nil then
  532. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(Mouse.Target.Parent.ItemName.Value, Cframe, game.Players.LocalPlayer, woodtype, Mouse.Target.Parent, false)
  533. end
  534. else
  535. --do nothing
  536. end
  537. end)
  538. end)
  539.  
  540. g1 = false
  541. g2 = false
  542. g3 = false
  543. g4 = false
  544. g5 = false
  545.  
  546. Grey.MouseButton1Click:connect(function()
  547. if g1 == true then
  548. g1 = false
  549. Grey.BackgroundColor3 = Color3.new(255, 255, 255)
  550. else
  551. g1 = true
  552. Grey.BackgroundColor3 = Color3.new(0, 255, 0)
  553. if g1 then
  554. woodtype = nil
  555. end
  556. end
  557. end)
  558.  
  559. Spooky.MouseButton1Click:connect(function()
  560. if g2 == true then
  561. g2 = false
  562. Spooky.BackgroundColor3 = Color3.new(255, 255, 255)
  563. else
  564. g2 = true
  565. Spooky.BackgroundColor3 = Color3.new(0, 255, 0)
  566. if g2 then
  567. woodtype = "Spooky"
  568. end
  569. end
  570. end)
  571.  
  572. LightSpooky.MouseButton1Click:connect(function()
  573. if g3 == true then
  574. g3 = false
  575. LightSpooky.BackgroundColor3 = Color3.new(255, 255, 255)
  576. else
  577. g3 = true
  578. LightSpooky.BackgroundColor3 = Color3.new(0, 255, 0)
  579. if g3 then
  580. woodtype = "SpookyNeon"
  581. end
  582. end
  583. end)
  584.  
  585. Blue.MouseButton1Click:connect(function()
  586. if g4 == true then
  587. g4 = false
  588. Blue.BackgroundColor3 = Color3.new(255, 255, 255)
  589. else
  590. g4 = true
  591. Blue.BackgroundColor3 = Color3.new(0, 255, 0)
  592. if g4 then
  593. woodtype = "CaveCrawler"
  594. end
  595. end
  596. end)
  597.  
  598. Phantom.MouseButton1Click:connect(function()
  599. if g5 == true then
  600. g5 = false
  601. Phantom.BackgroundColor3 = Color3.new(255, 255, 255)
  602. else
  603. g5 = true
  604. Phantom.BackgroundColor3 = Color3.new(0, 255, 0)
  605. if g5 then
  606. woodtype = "LoneCave"
  607. end
  608. end
  609. end)
  610.  
  611. -- GOLD AXE
  612. GoldAxe.MouseButton1Down:Connect(function()
  613. GoldAxe.BackgroundColor3 = Color3.new(0, 255, 0)
  614. GoldAxe.Text = "Active, Cant To off"
  615. Detect = coroutine.wrap(function()
  616. Player = game.Players.LocalPlayer
  617. mouse = Player:GetMouse()
  618. mouse.Button1Down:connect(function()
  619. MouseDown = true
  620. end)
  621. mouse.Button1Up:connect(function()
  622. MouseDown = false
  623. end)
  624. end)
  625. Detect()
  626. Player = game.Players.LocalPlayer
  627. mouse = Player:GetMouse()
  628. game:GetService('RunService').RenderStepped:connect(function()
  629. if Player.Character:FindFirstChild("Tool") then
  630. if MouseDown == true then
  631. if mouse.Target.Name == "WoodSection" then
  632. targetWood = mouse.Target
  633. Tool=Player.Character.Tool
  634. ---FaceVector
  635. Height = targetWood.CFrame:pointToObjectSpace(mouse.Hit.p).Y + targetWood.Size.Y/2
  636. local ray = Ray.new(Player.Character.Head.Position, ((targetWood.CFrame * CFrame.new(0, Height - targetWood.Size.Y/2, 0)).p - Player.Character.Head.Position).unit * 200)
  637. part,_,p = workspace:FindPartOnRay(ray, Player.Character)
  638. function fixVector(V)
  639. return Vector3.new(math.floor(V.X + 0.5), math.floor(V.Y + 0.5), math.floor(V.Z + 0.5))
  640. end
  641. local faceVector = fixVector(targetWood.CFrame:vectorToObjectSpace(p))
  642. if faceVector.Y ~= 0 then
  643. return
  644. end
  645. local lookAtCFrame = CFrame.new(Player.Character.Head.Position, mouse.Hit.p)
  646. local relativeCFrame = lookAtCFrame:toObjectSpace(targetWood.CFrame * CFrame.Angles(math.pi/2, 0, 0))
  647. local relativeLookVector = relativeCFrame.lookVector
  648. local m = relativeLookVector.Y >= 0 and 1 or -1
  649. if faceVector.X == 1 then
  650. faceVector = Vector3.new(0, 0, -1) * m
  651. elseif faceVector.X == -1 then
  652. faceVector = Vector3.new(0, 0, 1) * m
  653. elseif faceVector.Z == 1 then
  654. faceVector = Vector3.new(1, 0, 0) * m
  655. elseif faceVector.Z == -1 then
  656. faceVector = Vector3.new(-1, 0, 0) * m
  657. end
  658. local cutEvent = targetWood.Parent.CutEvent
  659. game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(cutEvent, {sectionId = targetWood.ID.Value, faceVector = faceVector, height = Height, hitPoints = 0.2, cooldown = 0, cuttingClass = "Axe", tool = Player.Character.Tool})
  660. end
  661. end
  662. end
  663. end)
  664. end)
RAW Paste Data