auto farms bots
Key Required

auto farms bots

War MachinesVodsVods 6.6K views 3K executesUpdated Sep 30, 2025
2.5/ 5(6 votes)
3350% Positive
Lua Script•79 lines (2671 chars)
local function StartAutoFarm()
    getgenv().WarMachinesExecuted = true
    local lp = game.Players.LocalPlayer
    local char = lp.Character or lp.CharacterAdded:Wait()
    local vinput = game:GetService("VirtualInputManager")
    local priorities = {"sniper", "elite", "bandit"}
 
    task.spawn(function()
        while getgenv().WarMachinesExecuted do
            local found = false
            for _, priority in ipairs(priorities) do
                for _, npc in pairs(workspace:GetDescendants()) do
                    if npc:IsA("Model") and npc:FindFirstChild("Humanoid") and npc:FindFirstChild("Head") then
                        local name = tostring(npc.Name):lower()
                        if name:find(priority) and npc.Humanoid.Health > 0 then
                            local head = npc.Head
                            char:PivotTo(head.CFrame * CFrame.new(0, 0, 5))
                            vinput:SendMouseButtonEvent(0, 0, 0, true, game, 1)
                            task.wait(0.1)
                            vinput:SendMouseButtonEvent(0, 0, 0, false, game, 1)
                            task.wait(0.3)
                            found = true
                            break
                        end
                    end
                end
                if found then break end
            end
            task.wait(0.4)
        end
    end)
end
 
-- Função para parar o Auto Farm
local function StopAutoFarm()
    getgenv().WarMachinesExecuted = false
end
 
-- GUI Pain or Hope
local gui = Instance.new("ScreenGui", game.CoreGui)
gui.Name = "PainOrHopeFarm"
 
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 240, 0, 130)
frame.Position = UDim2.new(0, 30, 0, 150)
frame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
 
local title = Instance.new("TextLabel", frame)
title.Text = "Pain or Hope"
title.Size = UDim2.new(1, 0, 0, 35)
title.BackgroundTransparency = 1
title.TextColor3 = Color3.fromRGB(180, 0, 255)
title.Font = Enum.Font.GothamBold
title.TextScaled = true
 
local toggle = Instance.new("TextButton", frame)
toggle.Size = UDim2.new(1, -40, 0, 40)
toggle.Position = UDim2.new(0, 20, 0, 50)
toggle.BackgroundColor3 = Color3.fromRGB(40, 0, 70)
toggle.TextColor3 = Color3.new(1, 1, 1)
toggle.Text = "Start Auto Farm"
toggle.Font = Enum.Font.Gotham
toggle.TextScaled = true
 
local active = false
 
toggle.MouseButton1Click:Connect(function()
    active = not active
    if active then
        toggle.Text = "Stop Auto Farm"
        StartAutoFarm()
    else
        toggle.Text = "Start Auto Farm"
        StopAutoFarm()
    end
end)

Features & Information

auto farm
#auto farm#WarMachines

Community Comments (5)

habuhabibi817habuhabibi817Oct 1, 2025

@Vods not working

OnzabirrOnzabirrOct 5, 2025(edited)

it works, very good, the only thing is that it should work all over the map, and not only close npcs

Replying to @Onzabirr
ProBaconHubProBaconHubJul 14, 2026

@Onzabirr You could set streaming property

jimmyjzkzjimmyjzkzApr 5, 2026

为什么这个游戏只见到自动农场的脚本呢,难道其他功能的脚本运行会被封号么,还是技术问题。

Replying to @jimmyjzkz
ProBaconHubProBaconHubJul 14, 2026

@jimmyjzkz https://scriptblox.com/script/War-Machines-ProBaconHub-15461

More Scripts for War Machines