Advertisement
SwaggerTv

Untitled

Jun 14th, 2021
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. To run simply join the game, inject the script, select the NPC or ALL switch, select the weapon to use, and then click start:
  2. Code:
  3. loadstring(game:HttpGetAsync("https://pastebin.com/raw/6TW7RGz3"))()
  4.  
  5. local player = game:GetService("Players").LocalPlayer
  6. local heartbeat = game:GetService("RunService").Heartbeat
  7. local remotes = game:GetService("ReplicatedStorage").RemoteEvents
  8. local btn, run
  9. local current_array_index = 1
  10.  
  11. local gui = library:AddWindow("Project XL | Auto Farm (HamstaGang)", {
  12. main_color = Color3.fromRGB(69, 69, 69), -- ( ͡° ͜ʖ ͡°)
  13. min_size = Vector2.new(370, 310),
  14. can_resize = false
  15. })
  16.  
  17. local all_array = { -- For our all switch
  18. "Bandits",
  19. "Rahgan's Overseers",
  20. "Agni's Overseers",
  21. "Lars' Minion",
  22. "Agni's Minions",
  23. "Rahgan's Minions"
  24. }
  25.  
  26. local array = {
  27. ["Bandits"] = "Defeat 10 Bandits",
  28. ["Rahgan's Overseers"] = "Defeat 4 of Rahgan's Overseers",
  29. ["Agni's Overseers"] = "Defeat 6 of Agni's Overseers",
  30. ["Lars' Minion"] = "Defeat 8 of Lars' Minions",
  31. ["Agni's Minions"] = "Defeat 9 of Agni's Minions",
  32. ["Rahgan's Minions"] = "Defeat 7 of Rahgan's Minions"
  33.  
  34. }
  35.  
  36. local tab = gui:AddTab("Main")
  37.  
  38. tab:AddLabel("NPC")
  39. local drop = tab:AddDropdown("Select", function(opt) array.target = opt array.quest = opt array.all = false end)
  40. for i,v in next, array do drop:Add(i) end
  41.  
  42. local switch = tab:AddSwitch("All", function(opt) array.target = "ALL" array.quest = "ALL" array.all = opt end)
  43.  
  44. tab:AddLabel("Weapon")
  45. local drop2 = tab:AddDropdown("Select", function(opt) array.weap = opt end)
  46.  
  47. repeat wait() until player.Backpack:FindFirstChildWhichIsA("BackpackItem") -- Wait for tools
  48.  
  49. for i,v in next, player.Backpack:children() do
  50. if v.ClassName == "Tool" then
  51. drop2:Add(v)
  52. end
  53. end
  54.  
  55. btn = tab:AddButton("Start", function()
  56. if not array.farm then
  57. run = game:GetService("RunService").Stepped:connect(function()
  58. pcall(function() player.Character.Humanoid:ChangeState(11) end)
  59. pcall(function() game:GetService("Players").LocalPlayer.Head.Overhead.Player:Destroy() end)
  60. end)
  61. array.farm = true btn.Text = "Stop"
  62. else
  63. array.farm = false btn.Text = "Start"
  64. run:Disconnect()
  65. end
  66. end)
  67.  
  68. library:FormatWindows()
  69. tab:Show()
  70.  
  71. player.Idled:connect(function()
  72. game:GetService("VirtualUser"):ClickButton2(Vector2.new())
  73. end)
  74.  
  75. coroutine.wrap(function()
  76. while wait() do
  77. if array.farm and not game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("Menu"):WaitForChild("QuestFrame").Visible then
  78. pcall(function()
  79. game:GetService("ReplicatedStorage").RemoteEvents.ChangeQuestRemote:FireServer(game:GetService("ReplicatedStorage").Quests[array[array.quest]])
  80. end)
  81. end
  82. end
  83. end)()
  84.  
  85. while wait() do
  86. if array.farm then
  87. if array.target == "ALL" or array.all then array.target = all_array[current_array_index] array.quest = all_array[current_array_index] end
  88. spawn(function() pcall(function() player.Character.Humanoid:EquipTool(player.Backpack:WaitForChild(array.weap, 0.3)) end) end)
  89. for i,x in pairs(game:GetService("Workspace").Live[array.target]:GetDescendants()) do
  90. if player.Character:FindFirstChild("Humanoid").Health <= 0 then -- ded
  91. wait(8) -- Give time to respawn
  92. break;
  93. end
  94. if x.Name == "Humanoid" then
  95. if x.Health > 0 then
  96. while x ~= nil and x.Health > 0 and array.farm and player.Character:FindFirstChild("Humanoid").Health > 0 do
  97. repeat wait() until player.Character:FindFirstChildWhichIsA("BackpackItem")
  98. setsimulationradius(math.huge,math.huge)
  99. player.Character:WaitForChild("HumanoidRootPart", 15).CFrame = (x.Parent.HumanoidRootPart.CFrame * CFrame.new(0,-7,0)) * CFrame.Angles(80,0,0)
  100. wait(0.3)
  101. game:GetService("ReplicatedStorage").RemoteEvents.BladeCombatRemote:FireServer(true, nil, nil)
  102. wait(0.3)
  103. x.Health = 0
  104. heartbeat:wait()
  105. end
  106. end
  107. end
  108. end
  109. if current_array_index == 5 then current_array_index = 1; else current_array_index = current_array_index+1; end
  110. end
  111. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement