Advertisement
xxPH4NTOM

Untitled

Jul 14th, 2020 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. getgenv().breakloop1 = false
  2.  
  3. local plr = game.Players.LocalPlayer
  4.  
  5. local rus = game:GetService('RunService')
  6.  
  7. local library = loadstring(game:HttpGet("https://pastebin.com/raw/gmtm1fL2"))()
  8.  
  9. library.sections = library.sections or {
  10. farming = library:CreateSection('Farming');
  11. }
  12.  
  13. local data = {}
  14.  
  15. local pawncf = CFrame.new(-185, 40, 220)
  16. local hidecf = CFrame.new(0,-50,0)
  17.  
  18. local selling = false
  19.  
  20. rus.RenderStepped:Connect(function()
  21. if data.autopickup_enabled and not selling then
  22. plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.p+plr.Character.HumanoidRootPart.CFrame.lookVector*50,hidepos.p)
  23. end
  24. end)
  25.  
  26. local function sell(tool)
  27. selling = true
  28. plr.Character.HumanoidRootPart.CFrame = pawncf
  29. game.ReplicatedStorage.SellWeapon:FireServer({tool})
  30. selling = false
  31. end
  32.  
  33. local function sell_all()
  34. local char = plr.Character
  35. for i,v in pairs(char:GetDescendants()) do
  36. if v:IsA('Tool') and v.Name ~= 'Fists' and v:FindFirstChild('PawnCost') then
  37. plr.Character.Humanoid:UnequipTools()
  38. end
  39. end
  40. for i,v in pairs(plr:GetDescendants()) do
  41. if v:IsA('Tool') and v.Name ~= 'Fists' and v:FindFirstChild('PawnCost') then
  42. sell(v)
  43. end
  44. end
  45. end
  46.  
  47. rus.RenderStepped:Connect(function()
  48. if data.autopickup_enabled then
  49. for i,v in pairs(workspace:GetChildren()) do
  50. if v:IsA('Tool') then
  51. plr.Character.Humanoid:EquipTool(v)
  52. end
  53. end
  54. end
  55. if data.autosell_enabled then
  56. sell_all()
  57. end
  58. end)
  59.  
  60. library.sections.farming:Toggle('Auto Pickup',function(x)
  61. data.autopickup_enabled = true
  62. end)
  63.  
  64. library.sections.farming:Toggle('Auto Sell',function(x)
  65. data.autosell_enabled = true
  66. end)
  67.  
  68. library:Ready()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement