> For the complete documentation index, see [llms.txt](https://probacon-hub.gitbook.io/probaconhub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://probacon-hub.gitbook.io/probaconhub/scripts/all-of-us-are-dead.md).

# All Of Us Are Dead

This is an auto farm script for the game “All Of Us Are DeadDead” in Roblox. And it is also the first script at the luner new year after we ProBaconHub return!

Auto farm will start when you equipped a weapon, and will stop if you execute it again, or simply by just unequip all weapons.

{% code lineNumbers="true" %}

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


if not AllOfUsAreDeadAutoFarmExecuted then
    getgenv().AllOfUsAreDeadAutoFarmExecuted = true
    game.StarterGui:SetCore("SendNotification", {Title = "ProBaconHub",Text = "Thanks for using this first return script!"})
end
if AllOfUsAreDeadAutoFarm then
    game.StarterGui:SetCore("SendNotification", {Title = "ProBaconHub",Text = "Equip gun to start farming."})
    game.StarterGui:SetCore("SendNotification", {Title = "ProBaconHub",Text = "Execute again to stop farming."})
    while task.wait(0.00001) do
        if not AllOfUsAreDeadAutoFarm then
            break
        end
        task.spawn(function()
            local args1 = {
                [1] = game:GetService("Players").LocalPlayer.Character:FindFirstChildWhichIsA("Tool"),
                [2] = {
                    ["id"] = 2046,
                    ["charge"] = 0,
                    ["dir"] = Vector3.new(0.5608824491500854, -0.008607717230916023, -0.8278507590293884),
                    ["origin"] = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.Position
                }
            }
            game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponFired:FireServer(unpack(args1))
        end)

        task.spawn(function()
            if game:GetService("Players").LocalPlayer.Character:FindFirstChildWhichIsA("Tool") then
                local args2 = {
                    [1] = game:GetService("Players").LocalPlayer.Character:FindFirstChildWhichIsA("Tool"),
                    [2] = {
                        ["p"] = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.Position,
                        ["pid"] = 1,
                        ["part"] = workspace.Enemies:FindFirstChildWhichIsA("Model").UpperTorso,
                        ["d"] = 28.583362579345703,
                        ["maxDist"] = 28.581480026245117,
                        ["h"] = workspace.Enemies:FindFirstChildWhichIsA("Model").Humanoid,
                        ["sid"] = 2050,
                        ["m"] = Enum.Material.Plastic,
                        ["t"] = 0.7758734321173678,
                        ["targetsHit"] = 1,
                        ["n"] = Vector3.new(-0.4834476113319397, -0.6209316253662109, 0.6170270442962646)
                    }
                }
                local Target = workspace.Enemies:FindFirstChildWhichIsA("Model")
                repeat
                    task.wait(0.00001)
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                    game:GetService("ReplicatedStorage").WeaponsSystem.Network.WeaponHit:FireServer(unpack(args2))
                until not Target or string.sub(Target.HealthBar_BillBoardGui.BackgroundFrame.HealthText.Text, 1, 1) == 0
                Target:Destroy()
            end
        end)
    end
else
    game.StarterGui:SetCore("SendNotification", {Title = "ProBaconHub",Text = "Auto farm stopped. Execute again to start farming."})
end
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/all-of-us-are-dead.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.
