Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().breakloop1 = false
- local plr = game.Players.LocalPlayer
- local rus = game:GetService('RunService')
- local library = loadstring(game:HttpGet("https://pastebin.com/raw/gmtm1fL2"))()
- library.sections = library.sections or {
- farming = library:CreateSection('Farming');
- }
- local data = {}
- local pawncf = CFrame.new(-185, 40, 220)
- local hidecf = CFrame.new(0,-50,0)
- local selling = false
- rus.RenderStepped:Connect(function()
- if data.autopickup_enabled and not selling then
- plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.p+plr.Character.HumanoidRootPart.CFrame.lookVector*50,hidepos.p)
- end
- end)
- local function sell(tool)
- selling = true
- plr.Character.HumanoidRootPart.CFrame = pawncf
- game.ReplicatedStorage.SellWeapon:FireServer({tool})
- selling = false
- end
- local function sell_all()
- local char = plr.Character
- for i,v in pairs(char:GetDescendants()) do
- if v:IsA('Tool') and v.Name ~= 'Fists' and v:FindFirstChild('PawnCost') then
- plr.Character.Humanoid:UnequipTools()
- end
- end
- for i,v in pairs(plr:GetDescendants()) do
- if v:IsA('Tool') and v.Name ~= 'Fists' and v:FindFirstChild('PawnCost') then
- sell(v)
- end
- end
- end
- rus.RenderStepped:Connect(function()
- if data.autopickup_enabled then
- for i,v in pairs(workspace:GetChildren()) do
- if v:IsA('Tool') then
- plr.Character.Humanoid:EquipTool(v)
- end
- end
- end
- if data.autosell_enabled then
- sell_all()
- end
- end)
- library.sections.farming:Toggle('Auto Pickup',function(x)
- data.autopickup_enabled = true
- end)
- library.sections.farming:Toggle('Auto Sell',function(x)
- data.autosell_enabled = true
- end)
- library:Ready()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement