The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Project XL v4.25 script pastebin roblox
By LINK GAME on 2024-11-24 08:00 am | Syntax: LUA | Views: 17



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



  • Recent Roblox Scripts