Advertisement
Guest User

Untitled

a guest
May 26th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.11 KB | None | 0 0
  1. -- Made By JJ#6727
  2. -- Equip An Axe
  3. -- Dont UnEquip Your Axe While Farming, It Might Glitch
  4. -- Type "e" to activate, stop the script
  5. -- Execute
  6. -- AUTO FARM!
  7. local HitPoints={
  8. ['GoldAxe']= 50;
  9. ['BasicHatchet']= 0.2;
  10. ['Axe1']= 0.55;
  11. ['Axe2']= 0.93;
  12. ['AxeAlphaTesters']= 1.5;
  13. ['Rukiryaxe']= 1.68;
  14. ['Axe3']= 1.45;
  15. ['AxeBetaTesters']= 1.45;
  16. ['FireAxe']= 0.6;
  17. ['SilverAxe']= 1.6;
  18. ['EndTimesAxe']= 10000000;
  19. ['AxeChicken']= 0.1;
  20. ['CandyCaneAxe']= 0;
  21. }
  22.  
  23. local dropoff = {
  24. CFrame.new(330, -0.296, 85.791), -- dropoff 1
  25. CFrame.new(315, -0.296, 85.791), -- dropoff 2
  26. }
  27. local TreeNames = {}
  28. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  29. if l.Name == "TreeRegion" then
  30. if l ~= nil then
  31. for i, b in pairs(l:GetChildren()) do
  32. if b:IsA("Model") then
  33. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Generic" then
  34. l.Name = "Generic"
  35. table.insert(TreeNames, l.Name)
  36. end
  37. end
  38. end
  39. end
  40. end
  41. end
  42. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  43. if l.Name == "TreeRegion" then
  44. if l ~= nil then
  45. for i, b in pairs(l:GetChildren()) do
  46. if b:IsA("Model") then
  47. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Elm" then
  48. l.Name = "Elm"
  49. table.insert(TreeNames, l.Name)
  50. end
  51. end
  52. end
  53. end
  54. end
  55. end
  56. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  57. if l.Name == "TreeRegion" then
  58. if l ~= nil then
  59. for i, b in pairs(l:GetChildren()) do
  60. if b:IsA("Model") then
  61. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Walnut" then
  62. l.Name = "Walnut"
  63. table.insert(TreeNames, l.Name)
  64. end
  65. end
  66. end
  67. end
  68. end
  69. end
  70. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  71. if l.Name == "TreeRegion" then
  72. if l ~= nil then
  73. for i, b in pairs(l:GetChildren()) do
  74. if b:IsA("Model") then
  75. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Cherry" then
  76. l.Name = "Cherry"
  77. table.insert(TreeNames, l.Name)
  78. end
  79. end
  80. end
  81. end
  82. end
  83. end
  84. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  85. if l.Name == "TreeRegion" then
  86. if l ~= nil then
  87. for i, b in pairs(l:GetChildren()) do
  88. if b:IsA("Model") then
  89. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "SnowGlow" then
  90. l.Name = "SnowGlow"
  91. table.insert(TreeNames, l.Name)
  92. end
  93. end
  94. end
  95. end
  96. end
  97. end
  98. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  99. if l.Name == "TreeRegion" then
  100. if l ~= nil then
  101. for i, b in pairs(l:GetChildren()) do
  102. if b:IsA("Model") then
  103. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Oak" then
  104. l.Name = "Oak"
  105. table.insert(TreeNames, l.Name)
  106. end
  107. end
  108. end
  109. end
  110. end
  111. end
  112. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  113. if l.Name == "TreeRegion" then
  114. if l ~= nil then
  115. for i, b in pairs(l:GetChildren()) do
  116. if b:IsA("Model") then
  117. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Birch" then
  118. l.Name = "Birch"
  119. table.insert(TreeNames, l.Name)
  120. end
  121. end
  122. end
  123. end
  124. end
  125. end
  126. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  127. if l.Name == "TreeRegion" then
  128. if l ~= nil then
  129. for i, b in pairs(l:GetChildren()) do
  130. if b:IsA("Model") then
  131. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Koa" then
  132. l.Name = "Koa"
  133. table.insert(TreeNames, l.Name)
  134. end
  135. end
  136. end
  137. end
  138. end
  139. end
  140. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  141. if l.Name == "TreeRegion" then
  142. if l ~= nil then
  143. for i, b in pairs(l:GetChildren()) do
  144. if b:IsA("Model") then
  145. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Cherry" then
  146. l.Name = "Fir"
  147. table.insert(TreeNames, l.Name)
  148. end
  149. end
  150. end
  151. end
  152. end
  153. end
  154. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  155. if l.Name == "TreeRegion" then
  156. if l ~= nil then
  157. for i, b in pairs(l:GetChildren()) do
  158. if b:IsA("Model") then
  159. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Pine" then
  160. l.Name = "Pine"
  161. table.insert(TreeNames, l.Name)
  162. end
  163. end
  164. end
  165. end
  166. end
  167. end
  168. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  169. if l.Name == "TreeRegion" then
  170. if l ~= nil then
  171. for i, b in pairs(l:GetChildren()) do
  172. if b:IsA("Model") then
  173. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Volcano" then
  174. l.Name = "Volcano"
  175. table.insert(TreeNames, l.Name)
  176. end
  177. end
  178. end
  179. end
  180. end
  181. end
  182. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  183. if l.Name == "TreeRegion" then
  184. if l ~= nil then
  185. for i, b in pairs(l:GetChildren()) do
  186. if b:IsA("Model") then
  187. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "GreenSwampy" then
  188. l.Name = "GreenSwampy"
  189. table.insert(TreeNames, l.Name)
  190. end
  191. end
  192. end
  193. end
  194. end
  195. end
  196. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  197. if l.Name == "TreeRegion" then
  198. if l ~= nil then
  199. for i, b in pairs(l:GetChildren()) do
  200. if b:IsA("Model") then
  201. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "CaveCrawler" then
  202. l.Name = "CaveCrawler"
  203. table.insert(TreeNames, l.Name)
  204. end
  205. end
  206. end
  207. end
  208. end
  209. end
  210. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  211. if l.Name == "TreeRegion" then
  212. if l ~= nil then
  213. for i, b in pairs(l:GetChildren()) do
  214. if b:IsA("Model") then
  215. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Palm" then
  216. l.Name = "Palm"
  217. table.insert(TreeNames, l.Name)
  218. end
  219. end
  220. end
  221. end
  222. end
  223. end
  224. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  225. if l.Name == "TreeRegion" then
  226. if l ~= nil then
  227. for i, b in pairs(l:GetChildren()) do
  228. if b:IsA("Model") then
  229. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Gold" then
  230. l.Name = "Gold"
  231. table.insert(TreeNames, l.Name)
  232. end
  233. end
  234. end
  235. end
  236. end
  237. end
  238. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  239. if l.Name == "TreeRegion" then
  240. if l ~= nil then
  241. for i, b in pairs(l:GetChildren()) do
  242. if b:IsA("Model") then
  243. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Frost" then
  244. l.Name = "Frost"
  245. table.insert(TreeNames, l.Name)
  246. end
  247. end
  248. end
  249. end
  250. end
  251. end
  252. for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
  253. if l.Name == "TreeRegion" then
  254. if l ~= nil then
  255. for i, b in pairs(l:GetChildren()) do
  256. if b:IsA("Model") then
  257. if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "LoneCave" then
  258. l.Name = "LoneCave"
  259. table.insert(TreeNames, l.Name)
  260. end
  261. end
  262. end
  263. end
  264. end
  265. end
  266. --Name Changer Ended
  267. --Tree Targeted
  268. local treename = workspace["Generic"] -- TREE NAME
  269. local target = treename:GetChildren()
  270. local plr = game:GetService("Players").LocalPlayer
  271.  
  272. local on = false
  273.  
  274. plr.Chatted:Connect(function(Msg)
  275.  
  276. if Msg:lower() == "e" then
  277.  
  278. on = not on
  279.  
  280. end
  281.  
  282. end)
  283.  
  284. while true do
  285. wait()
  286.  
  287. if on == true then
  288. wait()
  289. local choosen = math.random(#target)
  290. wait(1.5)
  291. --Ended
  292. --Cut Targeted Tree
  293. local plr = game.Players.LocalPlayer
  294. local A_1 = target[choosen]:FindFirstChild("CutEvent")
  295. local A_2 =
  296. {
  297. ["tool"] = workspace:FindFirstChild(plr.Name):FindFirstChild("Tool"),
  298. ["faceVector"] = Vector3.new(-1, 0, 0),
  299. ["height"] = 1,
  300. ["sectionId"] = 1,
  301. ["hitPoints"] = HitPoints[workspace:FindFirstChild(plr.Name).Tool.ToolName.Value],
  302. ["cooldown"] = 0,
  303. ["cuttingClass"] = "Axe"
  304. }
  305. for i = 1, 100 do
  306. wait()
  307. if target[choosen]:FindFirstChild("WoodSection") then
  308. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = target[choosen]:FindFirstChild("WoodSection").CFrame
  309. game:GetService("ReplicatedStorage").Interaction.RemoteProxy:FireServer(A_1, A_2)
  310. end
  311. end
  312. wait(1)
  313. target[choosen]:Destroy()
  314.  
  315. --Ended
  316.  
  317. wait()
  318. --Ended
  319. --Sell Wood
  320. for _, Log in pairs(workspace.LogModels:GetChildren()) do
  321. if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
  322. if Log.Owner.Value == game.Players.LocalPlayer then
  323. for i,v in pairs(Log:GetChildren()) do
  324. if v.Name=="WoodSection" then
  325. spawn(function()
  326. for i = 1, 1 do
  327. wait()
  328. local choosen = math.random(#dropoff)
  329. v.CFrame=dropoff[choosen]
  330. end
  331. end)
  332. end
  333. end
  334. spawn(function()
  335. for i = 1, 1000000 do
  336. wait()
  337. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log)
  338. print("cutted some tree")
  339. end
  340. end)
  341. end
  342. end
  343. end
  344. end
  345. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement