Auto Farm Halloween
Key Required

Auto Farm Halloween

Evade lorensc08lorensc08 7.3K views 138 executesUpdated Oct 30, 2025
5.0/ 5(4 votes)
40100% Positive
Lua Script•253 lines (8110 chars)
--[[
    FARM + FUGA + ANTI-AFK EVADE (IMORTAL - NUNCA KICKADO)
    • FindAI() para Nextbots
    • Fuga < 30 studs
    • ANTI-AFK: Pula + anda na safe (só quando parado)
    • X = parar | Z = respawn | C = toggle fuga | V = toggle anti-afk
--]]

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Workspace = game:GetService("Workspace")
local player = Players.LocalPlayer

local running = true
local FARM_ENABLED = true
local ESCAPE_ENABLED = true
local ANTI_AFK_ENABLED = true  -- ✅ NOVO: Anti-AFK

-- === CONFIGS ===
local ESCAPE_DISTANCE = 60
local ESCAPE_WAIT = 5
local ESCAPE_ZONES = {
    Vector3.new(10000, 500, 10000),
    Vector3.new(-10000, 500, -10000),
    Vector3.new(10000, 500, -10000),
    Vector3.new(-10000, 500, 10000)
}

local teleportDelay = 2.0
local stayTime = 2.0
local safeHeight = 150
local safePosition = Vector3.new(0, safeHeight, 0)
local safePlatform = nil
local ticketsContainer = Workspace:WaitForChild("Game"):WaitForChild("Effects"):WaitForChild("Tickets")

-- === ESTADO ===
local isEscaping = false
local isFarming = false  -- ✅ Detecta se está farmando/teleportando
local lastAntiAfkTime = 0
local ANTI_AFK_INTERVAL = 12  -- Pula/anda a cada 12s (seguro <20min)

-- === SEU FindAI() ===
local function FindAI()
    local WorkspacePlayers = Workspace:FindFirstChild("Game") and Workspace.Game:FindFirstChild("Players")
    if not WorkspacePlayers then return nil end
    for _, v in pairs(WorkspacePlayers:GetChildren()) do
        if v:IsA("Model") and not Players:FindFirstChild(v.Name) then
            return v
        end
    end
    return nil
end

local function FindAllAI()
    local bots = {}
    local WorkspacePlayers = Workspace:FindFirstChild("Game") and Workspace.Game:FindFirstChild("Players")
    if not WorkspacePlayers then return bots end
    for _, v in pairs(WorkspacePlayers:GetChildren()) do
        if v:IsA("Model") and not Players:FindFirstChild(v.Name) then
            table.insert(bots, v)
        end
    end
    return bots
end

-- === CRIA PLATAFORMA ===
local function createSafePlatform()
    if safePlatform and safePlatform.Parent then safePlatform:Destroy() end
    safePlatform = Instance.new("Part")
    safePlatform.Name = "SafePlatform"
    safePlatform.Size = Vector3.new(60, 2, 60)
    safePlatform.Position = safePosition + Vector3.new(0, 1, 0)
    safePlatform.Anchored = true
    safePlatform.CanCollide = true
    safePlatform.Transparency = 0.7
    safePlatform.BrickColor = BrickColor.new("Lime green")
    safePlatform.Material = Enum.Material.ForceField
    safePlatform.Parent = Workspace
    print("✅ Plataforma segura criada!")
end

-- === TELEPORT ===
local function teleportTo(pos)
    local char = player.Character or player.CharacterAdded:Wait()
    local hrp = char:FindFirstChild("HumanoidRootPart")
    if hrp then
        isFarming = true  -- ✅ Para anti-afk
        hrp.CFrame = CFrame.new(pos)
        task.wait(0.1)
        isFarming = false
    end
end

-- === FUGA ===
local function escapeToSafeZone()
    if isEscaping then return end
    isEscaping = true
    FARM_ENABLED = false
    isFarming = true  -- ✅ Para anti-afk

    local zone = ESCAPE_ZONES[math.random(1, #ESCAPE_ZONES)]
    print("🚀 [FUGA] Nextbot PERTO! FUGINDO...")
    teleportTo(zone + Vector3.new(0, 10, 0))

    task.delay(ESCAPE_WAIT, function()
        if not running then return end
        print("✅ [FUGA] Voltando ao farm...")
        teleportTo(safePosition + Vector3.new(0, 5, 0))
        FARM_ENABLED = true
        isEscaping = false
        isFarming = false
    end)
end

-- === VERIFICA INIMIGOS ===
local function checkEnemyProximity()
    if not ESCAPE_ENABLED or isEscaping then return end
    local char = player.Character
    local hrp = char and char:FindFirstChild("HumanoidRootPart")
    if not hrp then return end

    local bots = FindAllAI()
    if #bots == 0 then return end

    local closestDist = math.huge
    for _, bot in ipairs(bots) do
        local botHrp = bot:FindFirstChild("HRP") or bot:FindFirstChild("HumanoidRootPart")
        if botHrp then
            local dist = (hrp.Position - botHrp.Position).Magnitude
            if dist < closestDist then closestDist = dist end
        end
    end

    if closestDist < ESCAPE_DISTANCE then
        print("⚠️ Nextbot a", math.floor(closestDist), "studs! FUGINDO...")
        escapeToSafeZone()
    end
end

-- === ✅ ANTI-AFK: PULO + ANDAR ALEATÓRIO NA SAFE ===
local function doAntiAfk()
    if not ANTI_AFK_ENABLED or isFarming or isEscaping then return end
    
    local char = player.Character
    local hrp = char and char:FindFirstChild("HumanoidRootPart")
    local hum = char and char:FindFirstChildOfClass("Humanoid")
    if not hrp or not hum or hrp.Position.Y < safeHeight - 10 then return end  -- Só na safe!

    local now = tick()
    if now - lastAntiAfkTime < ANTI_AFK_INTERVAL then return end
    lastAntiAfkTime = now

    print("🦘 [ANTI-AFK] Pulo + movimento (Y="..math.floor(hrp.Position.Y)..")")

    -- PULO
    hum.Jump = true

    -- ANDAR ALEATÓRIO (pequeno raio na plataforma)
    local randomDir = Vector3.new(
        math.random(-10, 10),
        0,
        math.random(-10, 10)
    ).Unit * 8  -- 8 studs aleatório
    local walkPos = safePosition + randomDir + Vector3.new(0, 5, 0)
    hrp.CFrame = CFrame.new(walkPos)

    task.wait(0.5)
    -- Volta pro centro
    hrp.CFrame = CFrame.new(safePosition + Vector3.new(0, 5, 0))
end

-- === FARM ===
local function updateTargets()
    local targets = {}
    for _, obj in ipairs(ticketsContainer:GetDescendants()) do
        if obj:IsA("BasePart") or obj:IsA("MeshPart") or obj:IsA("Model") then
            table.insert(targets, obj)
        end
    end
    return targets
end

local function getSidePosition(target)
    local part = target:IsA("BasePart") and target or 
                 (target:IsA("Model") and (target.PrimaryPart or target:FindFirstChildWhichIsA("BasePart")))
    if not part then return nil end
    return part.Position + Vector3.new(0, 3, 0)
end

local function teleportToNext()
    local targets = updateTargets()
    if #targets == 0 then return end

    local target = targets[math.random(1, #targets)]
    local pos = getSidePosition(target)
    if not pos then return end

    print("🎫 Farmando:", target.Name)
    teleportTo(pos)  -- isFarming=true dentro

    task.delay(stayTime, function()
        if running and FARM_ENABLED and not isEscaping then
            teleportTo(safePosition + Vector3.new(0, 5, 0))
        end
    end)
end

-- === LOOP FARM ===
task.spawn(function()
    createSafePlatform()
    teleportTo(safePosition + Vector3.new(0, 5, 0))
    
    while running do
        if FARM_ENABLED and not isEscaping then
            teleportToNext()
        end
        task.wait(teleportDelay)
    end
end)

-- === DETECÇÃO INIMIGOS + ANTI-AFK (60 FPS) ===
RunService.Heartbeat:Connect(function()
    if ESCAPE_ENABLED then checkEnemyProximity() end
    doAntiAfk()  -- ✅ Chama toda frame, mas só age a cada 12s
end)

-- === KEYBINDS ===
UserInputService.InputBegan:Connect(function(input, gp)
    if gp then return end

    if input.KeyCode == Enum.KeyCode.X then
        running = false
        FARM_ENABLED = false
        print("🛑 PARADO")

    elseif input.KeyCode == Enum.KeyCode.Z then
        local hum = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
        if hum then hum.Health = 0 end

    elseif input.KeyCode == Enum.KeyCode.C then
        ESCAPE_ENABLED = not ESCAPE_ENABLED
        print("🛡️ Fuga:", ESCAPE_ENABLED and "ATIVADA" or "DESATIVADA")

    elseif input.KeyCode == Enum.KeyCode.V then  -- ✅ NOVO: Toggle Anti-AFK
        ANTI_AFK_ENABLED = not ANTI_AFK_ENABLED
        print("🦘 Anti-AFK:", ANTI_AFK_ENABLED and "ATIVADO (pula na safe)" or "DESATIVADO")
    end
end)

print("=== 🚀 FARM + FUGA + ANTI-AFK CARREGADO ===")
print("✅ X=Parar | Z=Respawn | C=Fuga | **V=Toggle Anti-AFK**")
print("🦘 Anti-AFK ATIVO: Pula/anda na safe a cada 12s (evita kick 20min)")

Features & Information

Auto Farm Event Auto Avoid NextBot Xeno work!
#Evade#Evade Event#Event

Community Comments (8)

kisukqingkisukqingOct 30, 2025

that's pretty good

EuphoriaDevEuphoriaDevOct 31, 2025

tysm, is so good

Replying to @EuphoriaDev
lorensc08lorensc08Nov 1, 2025

@EuphoriaDev thx

EuphoriaDevEuphoriaDevNov 4, 2025

And I got banned from Evade 🤡

EuphoriaDevEuphoriaDevNov 4, 2025

I didn't know it was better to use it on a private server.

Replying to @EuphoriaDev
lorensc08lorensc08Nov 5, 2025

@EuphoriaDev I farmed with 2 different accounts on public servers and didn't get banned

Replying to @lorensc08
EuphoriaDevEuphoriaDevNov 10, 2025

@lorensc08 That's because some player has to report you for you to get banned.

Replying to @lorensc08
EuphoriaDevEuphoriaDevNov 10, 2025

I had the misfortune of being recorded and reported to the Evade team.

More Scripts for Evade