Advertisement
artbarte

Lumber Tycoon 2 TP Any Wood And Cut Wood Instantly And More

Nov 2nd, 2017
14,534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.57 KB | None | 0 0
  1. --Unlumber Updated
  2. --Created By Unlisting
  3. --The New Remotes I Just Added Are From Drstattik's GUI. this is so it just makes it easier so thanks to him <3
  4. --The Remotes I Added from Drstattik are The Glitch Wood And Sell Wood cuz iternals Sales do basically the same thing as This.
  5.  
  6. --[[
  7. INFO:
  8. https://v3rmillion.net/showthread.php?tid=426334
  9. This Script Renames All TreeRegions To The Regions For Its Main Wood And Making It Easier For You To Teleport All The Wood To You Which Comes With It If You
  10. Enter The Wood's Name In The Global "TELEPORT" Variable Below.
  11.  
  12. Once You Cut The Wood Down Press The Key B Or Make It Automatically Bring It To You By Turning The _G.BRING To true.
  13.  
  14. You Can Also Press E To Cut the wood and just press R to teleport it to you or press "i" to sell it instantly
  15.  
  16. Teleport Your Latest Items You Have Bought (Keybind: "q")
  17. Teleport Your Cut Wood (Keybind: "r")
  18. GlitchWood (Keybind: "e")
  19. SellWood (Keybind: "i")
  20.  
  21. Have Fun Using This Script!
  22. --]]
  23.  
  24. --Settings
  25.  
  26. _G.TELEPORT = "Cherry" --The Name Of The Wood You Want. The List Of Wood Names Are Listed Below.
  27. _G.CREDITS = false --Print Credits
  28. _G.BRING = false --Automatically Teleport the wood you cut down
  29. _G.WOOD = "r" --Keybind for teleporting wood after cutting down
  30. _G.ITEM = "q" --Keybind for teleporting recent bought items
  31. _G.SIZE = 120 --Size Of Wood You Want For Glitching
  32.  
  33. --[[ Wood Names:
  34.  
  35. Copy And Paste These Names In The "_G.TELEPORT" String Above.
  36.  
  37. There May Be More Kinds Of Wood That I Haven't Put In Here But This Will Do For Now.
  38.  
  39. ------------------
  40. Cherry
  41. Palm
  42. FirBranch
  43. CaveCrawler
  44. Generic
  45. Spooky
  46. Fir
  47. GreenSwampy
  48. Oak
  49. Birch
  50. Volcano
  51. LoneCave
  52. --]]
  53.  
  54.  
  55.  
  56.  
  57.  
  58. --SCRIPTING
  59.  
  60. local Wood = {
  61. "Cherry",
  62. "Palm",
  63. "FirBranch",
  64. "CaveCrawler",
  65. "Generic",
  66. "Spooky",
  67. "Fir",
  68. "GreenSwampy",
  69. "Oak",
  70. "Birch",
  71. "Volcano",
  72. "LoneCave"
  73. }
  74.  
  75. local NewRegionNames = {}
  76.  
  77. --Name Changer For Seperating What Is What
  78.  
  79. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  80. if l.Name == "TreeRegion" then
  81. if l ~= nil then
  82. for i, b in pairs(l:GetChildren()) do
  83. if b:IsA("Model") then
  84. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[1] then
  85. l.Name = Wood[1]
  86. warn("TreeRegion #1 Has Been Changed To: "..Wood[1])
  87. table.insert(NewRegionNames, l.Name)
  88. end
  89. end
  90. end
  91. end
  92. end
  93. end
  94.  
  95. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  96. if l.Name == "TreeRegion" then
  97. if l ~= nil then
  98. for i, b in pairs(l:GetChildren()) do
  99. if b:IsA("Model") then
  100. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[2] then
  101. l.Name = Wood[2]
  102. warn("TreeRegion #2 Has Been Changed To: "..Wood[2])
  103. table.insert(NewRegionNames, l.Name)
  104. end
  105. end
  106. end
  107. end
  108. end
  109. end
  110.  
  111. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  112. if l.Name == "TreeRegion" then
  113. if l ~= nil then
  114. for i, b in pairs(l:GetChildren()) do
  115. if b:IsA("Model") then
  116. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[3] then
  117. l.Name = Wood[3]
  118. warn("TreeRegion #3 Has Been Changed To: "..Wood[3])
  119. table.insert(NewRegionNames, l.Name)
  120. end
  121. end
  122. end
  123. end
  124. end
  125. end
  126.  
  127. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  128. if l.Name == "TreeRegion" then
  129. if l ~= nil then
  130. for i, b in pairs(l:GetChildren()) do
  131. if b:IsA("Model") then
  132. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[4] then
  133. l.Name = Wood[4]
  134. warn("TreeRegion #4 Has Been Changed To: "..Wood[4])
  135. table.insert(NewRegionNames, l.Name)
  136. end
  137. end
  138. end
  139. end
  140. end
  141. end
  142.  
  143. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  144. if l.Name == "TreeRegion" then
  145. if l ~= nil then
  146. for i, b in pairs(l:GetChildren()) do
  147. if b:IsA("Model") then
  148. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[5] then
  149. l.Name = Wood[5]
  150. warn("TreeRegion #5 Has Been Changed To: "..Wood[5])
  151. table.insert(NewRegionNames, l.Name)
  152. end
  153. end
  154. end
  155. end
  156. end
  157. end
  158.  
  159. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  160. if l.Name == "TreeRegion" then
  161. if l ~= nil then
  162. for i, b in pairs(l:GetChildren()) do
  163. if b:IsA("Model") then
  164. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[6] then
  165. l.Name = Wood[6]
  166. warn("TreeRegion #6 Has Been Changed To: "..Wood[6])
  167. table.insert(NewRegionNames, l.Name)
  168. end
  169. end
  170. end
  171. end
  172. end
  173. end
  174.  
  175. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  176. if l.Name == "TreeRegion" then
  177. if l ~= nil then
  178. for i, b in pairs(l:GetChildren()) do
  179. if b:IsA("Model") then
  180. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[7] then
  181. l.Name = Wood[7]
  182. warn("TreeRegion #7 Has Been Changed To: "..Wood[7])
  183. table.insert(NewRegionNames, l.Name)
  184. end
  185. end
  186. end
  187. end
  188. end
  189. end
  190.  
  191. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  192. if l.Name == "TreeRegion" then
  193. if l ~= nil then
  194. for i, b in pairs(l:GetChildren()) do
  195. if b:IsA("Model") then
  196. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[8] then
  197. l.Name = Wood[8]
  198. warn("TreeRegion #8 Has Been Changed To: "..Wood[8])
  199. table.insert(NewRegionNames, l.Name)
  200. end
  201. end
  202. end
  203. end
  204. end
  205. end
  206.  
  207. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  208. if l.Name == "TreeRegion" then
  209. if l ~= nil then
  210. for i, b in pairs(l:GetChildren()) do
  211. if b:IsA("Model") then
  212. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[9] then
  213. l.Name = Wood[9]
  214. warn("TreeRegion #9 Has Been Changed To: "..Wood[9])
  215. table.insert(NewRegionNames, l.Name)
  216. end
  217. end
  218. end
  219. end
  220. end
  221. end
  222.  
  223. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  224. if l.Name == "TreeRegion" then
  225. if l ~= nil then
  226. for i, b in pairs(l:GetChildren()) do
  227. if b:IsA("Model") then
  228. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[10] then
  229. l.Name = Wood[10]
  230. warn("TreeRegion #10 Has Been Changed To: "..Wood[10])
  231. table.insert(NewRegionNames, l.Name)
  232. end
  233. end
  234. end
  235. end
  236. end
  237. end
  238.  
  239. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  240. if l.Name == "TreeRegion" then
  241. if l ~= nil then
  242. for i, b in pairs(l:GetChildren()) do
  243. if b:IsA("Model") then
  244. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[11] then
  245. l.Name = Wood[11]
  246. warn("TreeRegion #11 Has Been Changed To: "..Wood[11])
  247. table.insert(NewRegionNames, l.Name)
  248. end
  249. end
  250. end
  251. end
  252. end
  253. end
  254.  
  255. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  256. if l.Name == "TreeRegion" then
  257. if l ~= nil then
  258. for i, b in pairs(l:GetChildren()) do
  259. if b:IsA("Model") then
  260. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[12] then
  261. l.Name = Wood[12]
  262. warn("TreeRegion #12 Has Been Changed To: "..Wood[12])
  263. table.insert(NewRegionNames, l.Name)
  264. end
  265. end
  266. end
  267. end
  268. end
  269. end
  270.  
  271. --Names Checker
  272.  
  273. for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
  274. print(v.Name)
  275. end
  276.  
  277. --Teleporter
  278.  
  279. --CherryWood
  280.  
  281. for i, v in pairs(game:GetService("Workspace")[Wood[1]]:GetChildren()) do
  282. if _G.TELEPORT == Wood[1] then
  283. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[1] then
  284. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  285. end
  286. end
  287. end
  288.  
  289. --PalmWood
  290.  
  291. for i, v in pairs(game:GetService("Workspace")[Wood[2]]:GetChildren()) do
  292. if _G.TELEPORT == Wood[2] then
  293. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[2] then
  294. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  295. end
  296. end
  297. end
  298.  
  299. --FirBranchWood
  300.  
  301. if _G.TELEPORT == Wood[3] then
  302. for i, v in pairs(game:GetService("Workspace")[Wood[3]]:GetChildren()) do
  303. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[3] then
  304. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  305. end
  306. end
  307. end
  308.  
  309. --CaveCrawlerWood
  310.  
  311. if _G.TELEPORT == Wood[4] then
  312. for i, v in pairs(game:GetService("Workspace")[Wood[4]]:GetChildren()) do
  313. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[4] then
  314. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  315. end
  316. end
  317. end
  318.  
  319. --GenericWood
  320.  
  321. if _G.TELEPORT == Wood[5] then
  322. for i, v in pairs(game:GetService("Workspace")[Wood[5]]:GetChildren()) do
  323. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[5] then
  324. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  325. end
  326. end
  327. end
  328.  
  329. --SpookyWood
  330.  
  331. if _G.TELEPORT == Wood[6] then
  332. for i, v in pairs(game:GetService("Workspace")[Wood[6]]:GetChildren()) do
  333. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[6] then
  334. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  335. end
  336. end
  337. end
  338.  
  339. --FirWood
  340.  
  341. if _G.TELEPORT == Wood[7] then
  342. for i, v in pairs(game:GetService("Workspace")[Wood[7]]:GetChildren()) do
  343. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[7] then
  344. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  345. end
  346. end
  347. end
  348.  
  349. --GreenSwampyWood
  350.  
  351. if _G.TELEPORT == Wood[8] then
  352. for i, v in pairs(game:GetService("Workspace")[Wood[8]]:GetChildren()) do
  353. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[8] then
  354. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  355. end
  356. end
  357. end
  358.  
  359. --Oak
  360.  
  361. if _G.TELEPORT == Wood[9] then
  362. for i, v in pairs(game:GetService("Workspace")[Wood[9]]:GetChildren()) do
  363. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[9] then
  364. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  365. end
  366. end
  367. end
  368.  
  369. --Birch
  370.  
  371. if _G.TELEPORT == Wood[10] then
  372. for i, v in pairs(game:GetService("Workspace")[Wood[10]]:GetChildren()) do
  373. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[10] then
  374. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  375. end
  376. end
  377. end
  378.  
  379. --Volcano
  380.  
  381. if _G.TELEPORT == Wood[11] then
  382. for i, v in pairs(game:GetService("Workspace")[Wood[11]]:GetChildren()) do
  383. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[11] then
  384. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  385. end
  386. end
  387. end
  388.  
  389. --LoneCave
  390.  
  391. if _G.TELEPORT == Wood[12] then
  392. for i, v in pairs(game:GetService("Workspace")[Wood[12]]:GetChildren()) do
  393. if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[12] then
  394. v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
  395. end
  396. end
  397. end
  398.  
  399. --KeyBind
  400.  
  401. function GetAxe()
  402. if game.Players.LocalPlayer.Character:FindFirstChild("Tool") then
  403. return game.Players.LocalPlayer.Character:FindFirstChild("Tool")
  404. end
  405. end
  406.  
  407. local HitPoints={
  408. ['GoldAxe']= 50;
  409. ['BasicHatchet']= 0.2;
  410. ['Axe1']= 0.55;
  411. ['Axe2']= 0.93;
  412. ['AxeAlphaTesters']= 1.5;
  413. ['Rukiryaxe']= 1.68;
  414. ['Axe3']= 1.45;
  415. ['AxeBetaTesters']= 1.45;
  416. ['FireAxe']= 0.6;
  417. ['SilverAxe']= 1.6;
  418. ['EndTimesAxe']= 10000000;
  419. ['AxeChicken']= 0.1;
  420. ['CandyCaneAxe']= 0;
  421. }
  422.  
  423. local Pressing = false
  424.  
  425. local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
  426. mouse1.KeyDown:connect(function(key)
  427. if key == "e" then
  428. Pressing=true
  429. poop(GetAxe())
  430. end
  431. end)
  432.  
  433. local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
  434. mouse1.KeyUp:connect(function(key)
  435. if key == "e" then
  436. Pressing=false
  437. end
  438. end)
  439.  
  440. function cut(Height,Tool)
  441. local Tree=game.Players.LocalPlayer:GetMouse().Target
  442. game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(Tree.Parent.CutEvent,{
  443. ["cuttingClass"] = "Axe",
  444. ["cooldown"] = 0,
  445. ["hitPoints"] = HitPoints[Tool.ToolName.Value],
  446. ["sectionId"] = 1,
  447. ["tool"] = Tool,
  448. ["faceVector"] = Vector3.new(-1,0,0),
  449. ["height"] = Height})
  450. end
  451.  
  452. function poop(Tool)
  453. while Pressing do
  454. for i=1,100 do
  455. wait()
  456. cut(_G.SIZE,Tool)
  457. cut(1,Tool)
  458. end
  459. end
  460. end
  461.  
  462. --SellWood
  463.  
  464. local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
  465. mouse1.KeyDown:connect(function(key)
  466. if key == "i" then
  467. for _, Log in pairs(game.Workspace.LogModels:GetChildren()) do
  468. if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
  469. if Log.Owner.Value == game.Players.LocalPlayer then
  470. for i,v in pairs(Log:GetChildren()) do
  471. if v.Name=="WoodSection" then
  472. spawn(function()
  473. for i=1,10 do
  474. wait()
  475. v.CFrame=CFrame.new(Vector3.new(315, -0.296, 85.791))*CFrame.Angles(math.rad(90),0,0)
  476. end
  477. end)
  478. end
  479. end
  480. spawn(function()
  481. for i=1,20 do
  482. wait()
  483. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log)
  484. end
  485. end)
  486. end
  487. end
  488. end
  489. end
  490. end)
  491.  
  492. local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
  493. mouse1.KeyDown:connect(function(key)
  494. if key == _G.WOOD then
  495. for i, v in pairs(game.Workspace.LogModels:GetChildren()) do
  496. if v.Name:sub(1, 6) == "Loose_" and v:findFirstChild("Owner") and v.Owner.Value == game:GetService("Players").LocalPlayer then
  497. v:MoveTo(game:GetService("Players").LocalPlayer.Character.Torso.Position + Vector3.new(0, 5, 0))
  498. end
  499. end
  500. end
  501. end)
  502.  
  503. local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
  504. mouse1.KeyDown:connect(function(key)
  505. if key == _G.ITEM then
  506. for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
  507. for i, c in pairs(v:GetChildren()) do
  508. if c:FindFirstChild("PurchasedBoxItemName") then
  509. if c.Owner.LastInteraction.Value > 0 then
  510. if c.Owner.Value == game:GetService("Players").LocalPlayer then
  511. c:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position)
  512. end
  513. end
  514. end
  515. end
  516. end
  517. end
  518. end)
  519.  
  520. --Auto
  521.  
  522. while true do
  523. wait(5)
  524. if _G.BRING == true then
  525. for i, v in pairs(game.Workspace.LogModels:GetChildren()) do
  526. if v.Name:sub(1, 6) == "Loose_" and v:findFirstChild("Owner") and v.Owner.Value == game:GetService("Players").LocalPlayer then
  527. v:MoveTo(game:GetService("Players").LocalPlayer.Character.Torso.Position + Vector3.new(0, 5, 0))
  528. end
  529. end
  530. end
  531. end
  532.  
  533. --Credits
  534.  
  535. if _G.CREDITS == true then
  536. warn("[Unlumber] Created By Unlisting")
  537. warn("Thanks To Drstattik for the glitch and tp scripts")
  538. end
  539.  
  540. --End Of Scripting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement