The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
(CRACKED) ZENX ****** AUTOFARM script pastebin roblox
By (CRACKED) ZENX ****** AUTOFARM on 2024-09-22 08:00 am | Syntax: LUA | Views: 10



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. repeat task.wait() until game:IsLoaded()
  2. pcall(function()
  3.     repeat wait() until game.Players.LocalPlayer.Character:FindFirstChild('FULLY_LOADED_CHAR')
  4. end)
  5.  
  6. -- // Services
  7. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  8. local players = game:GetService('Players')
  9.  
  10. -- // Vars
  11. local player = players.LocalPlayer
  12. local chr
  13. pcall(function()
  14. repeat task.wait() chr = player.Character until chr
  15. end)
  16. local hrp = chr:WaitForChild('HumanoidRootPart')
  17. local KO = chr.BodyEffects["K.O"]
  18.  
  19. local __index
  20. __index = hookmetamethod(game, "__index", function(t, k)
  21.     if (t:IsA("Mouse") and (k == "Hit" or k == "Target")) then
  22.         local SelectedPart = getgenv().selectedpart
  23.         if (k == "Hit" or k == "Target") then
  24.             local Hit = SelectedPart.CFrame
  25.             return (k == "Hit" and Hit or SelectedPart)
  26.         end
  27.     end
  28.     return __index(t, k)
  29. end)
  30.  
  31. -- // Functions
  32.  
  33. function hop()
  34.     local x = {}
  35.     for _, v in ipairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
  36.         if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
  37.             x[#x + 1] = v.id
  38.         end
  39.     end
  40.     if #x > 0 then
  41.         game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, x[math.random(1, #x)])
  42.     else
  43.         print('failed to find server')
  44.     end
  45. end
  46.  
  47. function forceReset()
  48.     for _,v in pairs(chr:GetDescendants()) do
  49.         if v:IsA("BasePart") then
  50.             v:Destroy()
  51.         end
  52.     end
  53. end
  54.  
  55. function lookAt(chr,target)
  56.     if chr.PrimaryPart then
  57.         local chrPos=chr.PrimaryPart.Position
  58.         local tPos=target.Position
  59.         local newCF=CFrame.new(chrPos,tPos)
  60.         chr:SetPrimaryPartCFrame(newCF)
  61.     end
  62. end
  63.  
  64. local VirtualInputManager = game:GetService('VirtualInputManager')
  65. local function m1click()
  66.     VirtualInputManager:SendMouseButtonEvent(0,0,0,true,game,0)
  67.     task.wait()
  68.     VirtualInputManager:SendMouseButtonEvent(0,0,0,false,game,0)
  69. end
  70.  
  71. abort = false
  72. function ATM()
  73.     task.wait(2)
  74.     for _,v in pairs(workspace.Cashiers:GetChildren()) do
  75.         if v.Humanoid.Health > 1 then
  76.             local part = v.Open
  77.             repeat
  78.                 pcall(function()
  79.                     chr.HumanoidRootPart.CFrame = v.Head.CFrame + Vector3.new(3, -2, 0)
  80.                 end)
  81.                 lookAt(chr, v.Open)
  82.                 getgenv().selectedpart = v.Open
  83.                 task.wait(0.2)
  84.                 m1click()
  85.             until v.Humanoid.Health < 2 or KO.Value == true or abort == true
  86.             task.wait()
  87.             if KO.Value == true then
  88.                 forceReset()
  89.             end
  90.             pcall(function()
  91.             chr.HumanoidRootPart.CFrame = v.Open.CFrame + Vector3.new(2, 0, 0)
  92.             end)
  93.             task.wait(0.1)
  94.             for _,v in pairs(workspace.Ignored.Drop:GetChildren()) do
  95.                 if v:IsA('Part') and v.Name == "MoneyDrop" then
  96.                     repeat
  97.                         pcall(function()
  98.                             chr.HumanoidRootPart.CFrame = CFrame.new(v.Position)
  99.                         end)
  100.                         fireclickdetector(v:WaitForChild('ClickDetector'))
  101.                         task.wait()
  102.                     until not v:IsDescendantOf(workspace.Ignored.Drop)
  103.                 end
  104.             end
  105.         end
  106.     end
  107.     if getgenv().serverhop then
  108.         local num = math.random(5,12)
  109.         game.StarterGui:SetCore("SendNotification", {
  110.             Title = "SERVER HOP DELAY";
  111.             Text = "While farming, roblox ratelimites you due to server hopping too much. Hopefully this delay will somewhat prevent that. Delay: " .. tostring(num);
  112.             Duration = num;
  113.         })
  114.         wait(num)
  115.         hop()
  116.         wait()
  117.         ATM()
  118.     else
  119.         ATM()
  120.     end
  121. end
  122.  
  123. player.CharacterAdded:Connect(function() ATM() end)
  124. aad = false
  125. function check()
  126.     if not player.Backpack:FindFirstChild('Mask') and not chr:FindFirstChild("Mask") then
  127.         repeat
  128.             task.wait(0.3)
  129.             pcall(function()
  130.             chr.HumanoidRootPart.CFrame = workspace.Ignored.Shop["[Surgeon Mask] - $25"].Head.CFrame + Vector3.new(0, 5, 0)
  131.             end)
  132.             task.wait(0.3)
  133.             fireclickdetector( workspace.Ignored.Shop["[Surgeon Mask] - $25"].ClickDetector)
  134.         until player.Backpack:FindFirstChild('Mask')
  135.         chr.Humanoid:EquipTool(player.Backpack["Mask"])
  136.         task.wait(0.1)
  137.         m1click()
  138.     end
  139.     if not player.Backpack:FindFirstChild('[Double-Barrel SG]') and not chr:FindFirstChild("[Double-Barrel SG]") then
  140.         repeat
  141.             task.wait(0.3)
  142.             chr.HumanoidRootPart.CFrame = workspace.Ignored.Shop["[Double-Barrel SG] - $1400"].Head.CFrame + Vector3.new(0, 5, 0)
  143.             task.wait(0.3)
  144.             fireclickdetector( workspace.Ignored.Shop["[Double-Barrel SG] - $1400"].ClickDetector)
  145.         until player.Backpack:FindFirstChild('[Double-Barrel SG]')
  146.     end
  147.     if player.Backpack:FindFirstChild('[Double-Barrel SG]') then
  148.         chr.Humanoid:EquipTool(player.Backpack:FindFirstChild('[Double-Barrel SG]'))
  149.     end
  150.     if chr:FindFirstChild("[Double-Barrel SG]") then
  151.         if player.DataFolder.Inventory["[Double-Barrel SG]"].Value == 0 then
  152.             chr:BreakJoints()
  153.         end
  154.         VirtualInputManager:SendKeyEvent(true, "R", false, game)
  155.         task.wait(0.05)
  156.         VirtualInputManager:SendKeyEvent(false, "R", false, game)
  157.     end
  158.     aad = true
  159. end
  160.  
  161. spawn(function()
  162.     while task.wait() do
  163.         check()
  164.     end
  165. end)
  166.  
  167. repeat task.wait() until aad
  168.  
  169. spawn(function()
  170.     while task.wait(100) do
  171.         if getgenv().serverhop then hop() end
  172.     end
  173. end)
  174.  
  175. bb=game:service'VirtualUser'
  176. game:service'Players'.LocalPlayer.Idled:connect(function()
  177. bb:CaptureController()bb:ClickButton2(Vector2.new())
  178. end)
  179.  
  180. ATM()



  • Recent Roblox Scripts