Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made By JJ#6727
- -- Equip An Axe
- -- Dont UnEquip Your Axe While Farming, It Might Glitch
- -- Type "e" to activate, stop the script
- -- Execute
- -- AUTO FARM!
- local HitPoints={
- ['GoldAxe']= 50;
- ['BasicHatchet']= 0.2;
- ['Axe1']= 0.55;
- ['Axe2']= 0.93;
- ['AxeAlphaTesters']= 1.5;
- ['Rukiryaxe']= 1.68;
- ['Axe3']= 1.45;
- ['AxeBetaTesters']= 1.45;
- ['FireAxe']= 0.6;
- ['SilverAxe']= 1.6;
- ['EndTimesAxe']= 10000000;
- ['AxeChicken']= 0.1;
- ['CandyCaneAxe']= 0;
- }
- local dropoff = {
- CFrame.new(330, -0.296, 85.791), -- dropoff 1
- CFrame.new(315, -0.296, 85.791), -- dropoff 2
- }
- local TreeNames = {}
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Generic" then
- l.Name = "Generic"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Elm" then
- l.Name = "Elm"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Walnut" then
- l.Name = "Walnut"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Cherry" then
- l.Name = "Cherry"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "SnowGlow" then
- l.Name = "SnowGlow"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Oak" then
- l.Name = "Oak"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Birch" then
- l.Name = "Birch"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Koa" then
- l.Name = "Koa"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Cherry" then
- l.Name = "Fir"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Pine" then
- l.Name = "Pine"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Volcano" then
- l.Name = "Volcano"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "GreenSwampy" then
- l.Name = "GreenSwampy"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "CaveCrawler" then
- l.Name = "CaveCrawler"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Palm" then
- l.Name = "Palm"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Gold" then
- l.Name = "Gold"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "Frost" then
- l.Name = "Frost"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
- if l.Name == "TreeRegion" then
- if l ~= nil then
- for i, b in pairs(l:GetChildren()) do
- if b:IsA("Model") then
- if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == "LoneCave" then
- l.Name = "LoneCave"
- table.insert(TreeNames, l.Name)
- end
- end
- end
- end
- end
- end
- --Name Changer Ended
- --Tree Targeted
- local treename = workspace["Generic"] -- TREE NAME
- local target = treename:GetChildren()
- local plr = game:GetService("Players").LocalPlayer
- local on = false
- plr.Chatted:Connect(function(Msg)
- if Msg:lower() == "e" then
- on = not on
- end
- end)
- while true do
- wait()
- if on == true then
- wait()
- local choosen = math.random(#target)
- wait(1.5)
- --Ended
- --Cut Targeted Tree
- local plr = game.Players.LocalPlayer
- local A_1 = target[choosen]:FindFirstChild("CutEvent")
- local A_2 =
- {
- ["tool"] = workspace:FindFirstChild(plr.Name):FindFirstChild("Tool"),
- ["faceVector"] = Vector3.new(-1, 0, 0),
- ["height"] = 1,
- ["sectionId"] = 1,
- ["hitPoints"] = HitPoints[workspace:FindFirstChild(plr.Name).Tool.ToolName.Value],
- ["cooldown"] = 0,
- ["cuttingClass"] = "Axe"
- }
- for i = 1, 100 do
- wait()
- if target[choosen]:FindFirstChild("WoodSection") then
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = target[choosen]:FindFirstChild("WoodSection").CFrame
- game:GetService("ReplicatedStorage").Interaction.RemoteProxy:FireServer(A_1, A_2)
- end
- end
- wait(1)
- target[choosen]:Destroy()
- --Ended
- wait()
- --Ended
- --Sell Wood
- for _, Log in pairs(workspace.LogModels:GetChildren()) do
- if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
- if Log.Owner.Value == game.Players.LocalPlayer then
- for i,v in pairs(Log:GetChildren()) do
- if v.Name=="WoodSection" then
- spawn(function()
- for i = 1, 1 do
- wait()
- local choosen = math.random(#dropoff)
- v.CFrame=dropoff[choosen]
- end
- end)
- end
- end
- spawn(function()
- for i = 1, 1000000 do
- wait()
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log)
- print("cutted some tree")
- end
- end)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement