# War Machines

## Money Farm

This is an auto fly script for the game “War Machines”.

Simply by executing it, you will soar through the sky. This script sllows you to earn up to 100 in game currency per second. (Excluding refue time)

The process of the scrit is toggled by execution.

{% code lineNumbers="true" %}

```lua
getgenv().WarMachinesExecuted = not getgenv().WarMachinesExecuted
getgenv().TweenTeleportTakenTime = 0.5
getgenv().Return = false
getgenv().AutoCooldown = true

if getgenv().WarMachinesExecuted then
    game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(500, 700, 265)
    task.wait(0.1)
    game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.Space, false, game)
    task.wait(0.01)
    game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.Space, false, game)
    task.wait(0.01)
    game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.Space, false, game)
    task.wait(0.01)
    game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.Space, false, game)
    task.wait(0.01)
    game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.LeftShift, false, game)
    task.wait(0.0001)
    game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.LeftShift, false, game)
    getgenv().PlrVelocity = Instance.new("BodyVelocity")
    getgenv().PlrVelocity.Parent = game.Workspace.Characters[game.Players.LocalPlayer.Name].LowerTorso
    getgenv().PlrVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
    Loops = 0
    Direction = 1
    while true do
        if not getgenv().WarMachinesExecuted then
            break
        end
        Loops = Loops + 1
        if Loops == 40 and getgenv().Return == true then
            Direction = Direction * -1
            Loops = 0
        else
            getgenv().PlrVelocity.Velocity = Vector3.new(0, 1250 * Direction, 0)
            task.wait(0.5)
        end
		getgenv().PlrVelocity.Velocity = Vector3.new(0,100,0)
		if game.Players.LocalPlayer.Character:GetAttribute("Overheat") ~= nil then
        	if getgenv().AutoCooldown and game.Players.LocalPlayer.Character:GetAttribute("Overheat") >= 900 then
        	    repeat
        	        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-830.82, 285, -509.22)
        	        if game.Players.LocalPlayer.PlayerGui.Client.SideBar.Visible == true and game.Players.LocalPlayer.PlayerGui.Hotbar.Enabled == true then
        	            game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.Space, false, game)
        	            task.wait(0.1)
        	            game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.Space, false, game)
        	            task.wait(0.1)
        	            if game.Players.LocalPlayer.PlayerGui.Client.SideBar.Visible == true and game.Players.LocalPlayer.PlayerGui.Hotbar.Enabled == true then
        	                game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.LeftShift, false, game)
        	                task.wait(0.0001)
        	                game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.LeftShift, false, game)
        	                task.wait(0.1)
        	                if game.Players.LocalPlayer.PlayerGui.Client.SideBar.Visible == true and game.Players.LocalPlayer.PlayerGui.Hotbar.Enabled == true then
        	                    game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.Space, false, game)
        	                    task.wait(0.01)
        	                    game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.Space, false, game)
        	                    task.wait(0.01)
        	                    game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.LeftShift, false, game)
        	                    task.wait(0.0001)
        	                    game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.LeftShift, false, game)
        	                    task.wait(0.1)
        	                end
        	            end
        	        end
        	        task.wait(0.01)
        	    until game.Players.LocalPlayer.Character:GetAttribute("Overheat") <= 50 or not getgenv().WarMachinesExecuted
        	end
		end
        if game.Players.LocalPlayer.PlayerGui.Client.SideBar.Visible == true and game.Players.LocalPlayer.PlayerGui.Hotbar.Enabled == true then
            game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.Space, false, game)
            task.wait(0.1)
            game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.Space, false, game)
            task.wait(0.1)
            if game.Players.LocalPlayer.PlayerGui.Client.SideBar.Visible == true and game.Players.LocalPlayer.PlayerGui.Hotbar.Enabled == true then
                game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.LeftShift, false, game)
                task.wait(0.0001)
                game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.LeftShift, false, game)
                task.wait(0.1)
                if game.Players.LocalPlayer.PlayerGui.Client.SideBar.Visible == true and game.Players.LocalPlayer.PlayerGui.Hotbar.Enabled == true then
                    game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.Space, false, game)
                    task.wait(0.01)
                    game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.Space, false, game)
                    task.wait(0.01)
                    game:GetService('VirtualInputManager'):SendKeyEvent(true, Enum.KeyCode.LeftShift, false, game)
                    task.wait(0.0001)
                    game:GetService('VirtualInputManager'):SendKeyEvent(false, Enum.KeyCode.LeftShift, false, game)
                end
            end
        end
    end
else
    getgenv().PlrVelocity.Velocity = Vector3.new(0,0,0)
    game:GetService("TweenService"):Create(game.Players.LocalPlayer.Character.HumanoidRootPart ,TweenInfo.new(getgenv().TweenTeleportTakenTime),{CFrame = CFrame.new(500, 700, 265)}):Play()
    task.wait(getgenv().TweenTeleportTakenTime)
    getgenv().PlrVelocity:Destroy()
	game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0,-10,0)
	task.wait(.25)
    game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(500, 640, 265)
end
```

{% endcode %}

***

## Enemy Farm

This is an auto kill script for the game “War Machines”.

Simply by executing it, you will soar through the sky. This script sllows you to earn up to 100 in game currency per second. (Excluding refue time)

The process of the scrit is toggled by execution.

{% code lineNumbers="true" %}

```lua
getgenv().WARMACHINES_AUTOFARM = not getgenv().WARMACHINES_AUTOFARM

while getgenv().WARMACHINES_AUTOFARM do
    local suitcase = game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Suitcase") or game:GetService("Players").LocalPlayer.Character:FindFirstChild("Suitcase") or nil
    if suitcase then
        suitcase.ToolListnerEvent:FireServer("Activate", "Hot Rod")
        task.wait(1)
    else
        print('suit')
    end
    for _, mission in ipairs(workspace.Missions:GetChildren()) do
        while getgenv().WARMACHINES_AUTOFARM and game.Players.LocalPlayer.Character and mission and mission:FindFirstChild("AISpawners") and mission.AISpawners:FindFirstChildWhichIsA("Part") == nil do
            game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = mission.WorldPivot
            task.wait(0.25)
        end
        if getgenv().WARMACHINES_AUTOFARM and game.Players.LocalPlayer.Character and mission and mission:FindFirstChild("AISpawners") then
            for _, spawner in pairs(mission.AISpawners:GetChildren()) do
                if getgenv().WARMACHINES_AUTOFARM and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and spawner:FindFirstChildWhichIsA("Model") then
                    local v = spawner:FindFirstChildWhichIsA("Model")
                    while getgenv().WARMACHINES_AUTOFARM and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid").Health ~= 0 do
                        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame*CFrame.new(0,0,1)
                        game:GetService("Players").LocalPlayer.Character:WaitForChild("Fists"):WaitForChild("ToolListnerEvent"):FireServer("Activate")
                        task.wait(0.01)
                    end
                end
            end
        end
    end
    task.wait(0.1)
end
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://probacon-hub.gitbook.io/probaconhub/scripts/war-machines.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
