Os
Key Required

Os

Ant War 🐜GlodonGlodon 1.3K views 8.9K executesUpdated Jun 20, 2026
5.0/ 5(2 votes)
20100% Positive
Lua Script•545 lines (31177 chars)
--========================================================================
-- GUERRA DE HORMIGAS 🐜 - APEX MATRIX V1.0 (PREMIUM INTEGRAL REBOOT)
--========================================================================

print("[APEX MATRIX]: Inicializando inyección de interfaz universal...")

task.spawn(function()
    local Players = game:GetService("Players")
    local RunService = game:GetService("RunService")
    local UserInputService = game:GetService("UserInputService")
    local Lighting = game:GetService("Lighting")
    local VirtualUser = game:GetService("VirtualUser")
    local TeleportService = game:GetService("TeleportService")
    
    local LocalPlayer = Players.LocalPlayer
    
    local CLAVE_CORRECTA = "APEX2026"
    local LINK_DISCORD = "https://discord.gg/JaPHxgNJd"

    -- Detección absoluta del contenedor de interfaz del cliente
    local PlayerGui = nil
    for i = 1, 30 do
        PlayerGui = LocalPlayer:FindFirstChildOfClass("PlayerGui") or LocalPlayer:FindFirstChild("PlayerGui")
        if PlayerGui then break end
        task.wait(0.3)
    end
    
    if not PlayerGui then 
        warn("[APEX MATRIX ERROR]: No se pudo establecer conexión con el motor de renderizado local.")
        return 
    end

    -- TABLA CONFIGURATIVA DEL SCRIPT
    local Config = {
        ESP = false, TeamCheck = true, DistanciaESP = true,
        AutoEat = false, AutoEgg = false, AutoCollect = false,
        WalkSpeed = 16, AutoSprint = false, EscapeMode = false, Noclip = false,
        PredatorDetect = false, AntiAFK = true, FPSBoost = false,
        AntSize = 1, AutoEquip = false, AutoClicker = false, AutoProximity = false,
        AutoServant = false, InterfazPersonalizada = false, ModoOscuro = true, AnimacionesUI = true
    }

    -- Limpieza de interfaces previas colgantes
    for _, v in ipairs(PlayerGui:GetChildren()) do
        if v.Name == "Apex_KeySystem" or v.Name == "AntWar_Apex_V1" then
            pcall(function() v:Destroy() end)
        end
    end

    -- ==========================================
    -- CUADRO DE NOTIFICACIONES DEL AUTO SIRVIENTE
    -- ==========================================
    local ServantGui = Instance.new("ScreenGui", PlayerGui)
    ServantGui.Name = "Apex_Servant_Notify"
    ServantGui.ResetOnSpawn = false

    local ServantFrame = Instance.new("Frame", ServantGui)
    ServantFrame.Size = UDim2.fromScale(0.32, 0.10)
    ServantFrame.Position = UDim2.fromScale(0.34, 0.02)
    ServantFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
    ServantFrame.BackgroundTransparency = 0.15
    ServantFrame.Visible = false
    Instance.new("UICorner", ServantFrame).CornerRadius = UDim.new(0, 6)
    local ServantStroke = Instance.new("UIStroke", ServantFrame)
    ServantStroke.Color = Color3.fromRGB(120, 120, 130)

    local ServantText = Instance.new("TextLabel", ServantFrame)
    ServantText.Size = UDim2.fromScale(0.9, 0.8)
    ServantText.Position = UDim2.fromScale(0.05, 0.1)
    ServantText.TextColor3 = Color3.fromRGB(255, 255, 255)
    ServantText.Font = Enum.Font.GothamSemibold
    ServantText.TextSize = 11
    ServantText.TextWrapped = true
    ServantText.BackgroundTransparency = 1

    local function MostrarMensajeSirviente(texto)
        if not Config.AutoServant then return end
        ServantText.Text = "🤖 SIRVIENTE: " .. texto
        ServantFrame.Visible = true
        task.delay(2.5, function()
            if ServantText.Text == "🤖 SIRVIENTE: " .. texto then
                ServantFrame.Visible = false
            end
        end)
    end

    -- ==========================================
    -- INTERFAZ DEL KEY SYSTEM
    -- ==========================================
    local KeyGui = Instance.new("ScreenGui")
    KeyGui.Name = "Apex_KeySystem"
    KeyGui.ResetOnSpawn = false
    KeyGui.Parent = PlayerGui

    local KeyFrame = Instance.new("Frame", KeyGui)
    KeyFrame.Size = UDim2.fromScale(0.42, 0.48)
    KeyFrame.Position = UDim2.fromScale(0.29, 0.26)
    KeyFrame.BackgroundColor3 = Color3.fromRGB(14, 14, 18)
    Instance.new("UICorner", KeyFrame).CornerRadius = UDim.new(0, 8)
    local StrokeKey = Instance.new("UIStroke", KeyFrame) StrokeKey.Color = Color3.fromRGB(220, 20, 20) StrokeKey.Thickness = 1.5

    local KeyTitle = Instance.new("TextLabel", KeyFrame)
    KeyTitle.Size = UDim2.fromScale(1, 0.18)
    KeyTitle.Text = "🔑 APEX MATRIX KEY SYSTEM"
    KeyTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
    KeyTitle.Font = Enum.Font.GothamBold KeyTitle.TextSize = 13 KeyTitle.BackgroundTransparency = 1

    local DiscordInfo = Instance.new("TextLabel", KeyFrame)
    DiscordInfo.Size = UDim2.fromScale(0.9, 0.15)
    DiscordInfo.Position = UDim2.fromScale(0.05, 0.18)
    DiscordInfo.Text = "⚠️ DEBES ENTRAR AL SERVIDOR DE DISCORD PARA CONSEGUIR LA KEY VERIFICADA"
    DiscordInfo.TextColor3 = Color3.fromRGB(255, 200, 50)
    DiscordInfo.Font = Enum.Font.GothamBold DiscordInfo.TextSize = 9 DiscordInfo.TextWrapped = true DiscordInfo.BackgroundTransparency = 1

    local DiscordLabel = Instance.new("TextLabel", KeyFrame)
    DiscordLabel.Size = UDim2.fromScale(0.9, 0.10)
    DiscordLabel.Position = UDim2.fromScale(0.05, 0.35)
    DiscordLabel.Text = LINK_DISCORD
    DiscordLabel.TextColor3 = Color3.fromRGB(140, 150, 255)
    DiscordLabel.Font = Enum.Font.GothamSemibold DiscordLabel.TextSize = 10 DiscordLabel.BackgroundTransparency = 1

    local CopyBtn = Instance.new("TextButton", KeyFrame)
    CopyBtn.Size = UDim2.fromScale(0.6, 0.11)
    CopyBtn.Position = UDim2.fromScale(0.2, 0.47)
    CopyBtn.BackgroundColor3 = Color3.fromRGB(32, 35, 55)
    CopyBtn.Text = "📋 COPIAR ENLACE DE DISCORD"
    CopyBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
    CopyBtn.Font = Enum.Font.GothamBold CopyBtn.TextSize = 9
    Instance.new("UICorner", CopyBtn)

    CopyBtn.MouseButton1Click:Connect(function()
        if setclipboard then setclipboard(LINK_DISCORD) elseif toclipboard then toclipboard(LINK_DISCORD) end
        CopyBtn.Text = "¡ENLACE COPIADO!"
        task.delay(2, function() CopyBtn.Text = "📋 COPIAR ENLACE DE DISCORD" end)
    end)

    local TextBox = Instance.new("TextBox", KeyFrame)
    TextBox.Size = UDim2.fromScale(0.8, 0.14)
    TextBox.Position = UDim2.fromScale(0.1, 0.64)
    TextBox.BackgroundColor3 = Color3.fromRGB(24, 24, 30)
    TextBox.Text = "" TextBox.PlaceholderText = "Pega la llave obtenida aquí..."
    TextBox.TextColor3 = Color3.fromRGB(255, 255, 255) TextBox.Font = Enum.Font.Gotham TextBox.TextSize = 11
    Instance.new("UICorner", TextBox)

    local CheckBtn = Instance.new("TextButton", KeyFrame)
    CheckBtn.Size = UDim2.fromScale(0.5, 0.14)
    CheckBtn.Position = UDim2.fromScale(0.25, 0.82)
    CheckBtn.BackgroundColor3 = Color3.fromRGB(220, 20, 20)
    CheckBtn.Text = "LOGEAR SCRIPT"
    CheckBtn.TextColor3 = Color3.fromRGB(255, 255, 255) CheckBtn.Font = Enum.Font.GothamBold CheckBtn.TextSize = 10
    Instance.new("UICorner", CheckBtn)

    -- ==========================================
    -- MENÚ PRINCIPAL E INTEGRACIÓN DE FUNCIONES
    -- ==========================================
    local function IniciarScriptPrincipal()
        KeyGui:Destroy()

        local ScreenGui = Instance.new("ScreenGui")
        ScreenGui.Name = "AntWar_Apex_V1"
        ScreenGui.ResetOnSpawn = false
        ScreenGui.Parent = PlayerGui

        local MainFrame = Instance.new("Frame", ScreenGui)
        MainFrame.Size = UDim2.fromScale(0.55, 0.78)
        MainFrame.Position = UDim2.fromScale(0.22, 0.10)
        MainFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 13)
        Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 10)
        local StrokeMain = Instance.new("UIStroke", MainFrame) StrokeMain.Color = Color3.fromRGB(220, 20, 20) StrokeMain.Thickness = 1.5

        local TopBar = Instance.new("Frame", MainFrame)
        TopBar.Size = UDim2.fromScale(1, 0.12)
        TopBar.BackgroundColor3 = Color3.fromRGB(16, 16, 22)
        Instance.new("UICorner", TopBar).CornerRadius = UDim.new(0, 10)

        local Title = Instance.new("TextLabel", TopBar)
        Title.Size = UDim2.fromScale(0.45, 1) Title.Position = UDim2.fromScale(0.04, 0)
        Title.Text = "ANT WAR • APEX MATRIX V1.0" Title.TextColor3 = Color3.fromRGB(255, 255, 255)
        Title.Font = Enum.Font.GothamBold Title.TextSize = 11 Title.TextXAlignment = Enum.TextXAlignment.Left Title.BackgroundTransparency = 1

        -- CONTENEDOR PARA SECCIÓN DE CRÉDITOS CON ETIQUETA EN AMARILLO
        local CreditsFrame = Instance.new("Frame", TopBar)
        CreditsFrame.Size = UDim2.fromScale(0.5, 1)
        CreditsFrame.Position = UDim2.fromScale(0.46, 0)
        CreditsFrame.BackgroundTransparency = 1

        local ListLayoutCredits = Instance.new("UIListLayout", CreditsFrame)
        ListLayoutCredits.FillDirection = Enum.FillDirection.Horizontal
        ListLayoutCredits.HorizontalAlignment = Enum.HorizontalAlignment.Right
        ListLayoutCredits.VerticalAlignment = Enum.VerticalAlignment.Center
        ListLayoutCredits.Padding = UDim.new(0, 4)

        local UserText = Instance.new("TextLabel", CreditsFrame)
        UserText.Size = UDim2.fromScale(0.75, 1)
        UserText.Text = "ueu9195 • Panterascrrd" UserText.TextColor3 = Color3.fromRGB(220, 220, 220)
        UserText.Font = Enum.Font.GothamBold UserText.TextSize = 8 UserText.TextXAlignment = Enum.TextXAlignment.Right UserText.BackgroundTransparency = 1

        local CreatorTag = Instance.new("TextLabel", CreditsFrame)
        CreatorTag.Size = UDim2.fromScale(0.22, 1)
        CreatorTag.Text = "[Creator👑]" CreatorTag.TextColor3 = Color3.fromRGB(255, 215, 0)
        CreatorTag.Font = Enum.Font.GothamBold CreatorTag.TextSize = 8 CreatorTag.TextXAlignment = Enum.TextXAlignment.Right CreatorTag.BackgroundTransparency = 1

        local OptionList = Instance.new("ScrollingFrame", MainFrame)
        OptionList.Size = UDim2.fromScale(0.92, 0.84) OptionList.Position = UDim2.fromScale(0.04, 0.14)
        OptionList.BackgroundTransparency = 1 OptionList.CanvasSize = UDim2.fromScale(0, 8.2) OptionList.ScrollBarThickness = 3 OptionList.ScrollBarImageColor3 = Color3.fromRGB(220, 20, 20)
        local ListLayout = Instance.new("UIListLayout", OptionList) ListLayout.Padding = UDim.new(0, 5)

        -- Sistema de Arrastre Adaptable
        local dragging, dragStart, startPos
        TopBar.InputBegan:Connect(function(input)
            if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
                dragging = true; dragStart = input.Position; startPos = MainFrame.Position
            end
        end)
        UserInputService.InputChanged:Connect(function(input)
            if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
                local delta = input.Position - dragStart
                MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
            end
        end)
        UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end)

        local function AgregarSeparador(titulo)
            local l = Instance.new("TextLabel", OptionList) l.Size = UDim2.new(1, -6, 0, 22)
            l.Text = "--- " .. titulo:upper() .. " ---" l.TextColor3 = Color3.fromRGB(220, 20, 20)
            l.Font = Enum.Font.GothamBold l.TextSize = 9 l.BackgroundTransparency = 1
        end

        local function CrearToggle(nombre, config_key, explicacion, callback)
            local Frame = Instance.new("Frame", OptionList) Frame.Size = UDim2.new(1, -6, 0, 32) Frame.BackgroundColor3 = Color3.fromRGB(16, 18, 24) Instance.new("UICorner", Frame)
            local Text = Instance.new("TextLabel", Frame) Text.Size = UDim2.fromScale(0.7, 1) Text.Position = UDim2.fromScale(0.04, 0)
            Text.Text = nombre Text.TextColor3 = Color3.fromRGB(230, 230, 230) Text.Font = Enum.Font.GothamSemibold Text.TextSize = 10 Text.TextXAlignment = Enum.TextXAlignment.Left Text.BackgroundTransparency = 1
            local Button = Instance.new("TextButton", Frame) Button.Size = UDim2.fromScale(0.18, 0.6) Button.Position = UDim2.fromScale(0.78, 0.2) Button.BackgroundColor3 = Color3.fromRGB(45, 50, 60)
            Button.Text = "OFF" Button.TextColor3 = Color3.fromRGB(255, 255, 255) Button.Font = Enum.Font.GothamBold Button.TextSize = 9 Instance.new("UICorner", Button)
            
            Button.MouseButton1Click:Connect(function()
                Config[config_key] = not Config[config_key]
                Button.Text = Config[config_key] and "ON" or "OFF"
                Button.BackgroundColor3 = Config[config_key] and Color3.fromRGB(220, 20, 20) or Color3.fromRGB(45, 50, 60)
                if Config[config_key] and explicacion then MostrarMensajeSirviente(explicacion) end
                if callback then callback(Config[config_key]) end
            end)
        end

        local function CrearSlider(nombre, min, max, config_key, explicacion, callback)
            local Frame = Instance.new("Frame", OptionList) Frame.Size = UDim2.new(1, -6, 0, 42) Frame.BackgroundColor3 = Color3.fromRGB(16, 18, 24) Instance.new("UICorner", Frame)
            local Text = Instance.new("TextLabel", Frame) Text.Size = UDim2.fromScale(0.9, 0.4) Text.Position = UDim2.fromScale(0.04, 0.05)
            Text.Text = nombre .. " [" .. tostring(Config[config_key]) .. "]" Text.TextColor3 = Color3.fromRGB(200, 200, 200) Text.Font = Enum.Font.GothamSemibold Text.TextSize = 9 Text.TextXAlignment = Enum.TextXAlignment.Left Text.BackgroundTransparency = 1
            local SliderBar = Instance.new("Frame", Frame) SliderBar.Size = UDim2.fromScale(0.92, 0.1) SliderBar.Position = UDim2.fromScale(0.04, 0.68) SliderBar.BackgroundColor3 = Color3.fromRGB(45, 50, 60) Instance.new("UICorner", SliderBar)
            local Fill = Instance.new("Frame", SliderBar) Fill.Size = UDim2.fromScale((Config[config_key] - min)/(max - min), 1) Fill.BackgroundColor3 = Color3.fromRGB(220, 20, 20) Instance.new("UICorner", Fill)
            local ClickBtn = Instance.new("TextButton", SliderBar) ClickBtn.Size = UDim2.fromScale(1, 1) ClickBtn.BackgroundTransparency = 1 ClickBtn.Text = ""
            
            local function ActualizarSlider(input)
                local xPercent = math.clamp((input.Position.X - SliderBar.AbsolutePosition.X) / SliderBar.AbsoluteSize.X, 0, 1)
                local value = math.floor(min + (max - min) * xPercent)
                Config[config_key] = value; Text.Text = nombre .. " [" .. tostring(value) .. "]"; Fill.Size = UDim2.fromScale(xPercent, 1)
                if callback then callback(value) end
            end
            
            local slideDrag = false
            ClickBtn.InputBegan:Connect(function(input) 
                if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then 
                    slideDrag = true; ActualizarSlider(input)
                    if explicacion then MostrarMensajeSirviente(explicacion) end
                end 
            end)
            UserInputService.InputChanged:Connect(function(input) if slideDrag and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then ActualizarSlider(input) end end)
            UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then slideDrag = false end end)
        end

        local function CrearBotonAccion(nombre, explicacion, callback)
            local Btn = Instance.new("TextButton", OptionList) Btn.Size = UDim2.new(1, -6, 0, 32) Btn.BackgroundColor3 = Color3.fromRGB(24, 26, 35)
            Btn.Text = nombre:upper() Btn.TextColor3 = Color3.fromRGB(255, 255, 255) Btn.Font = Enum.Font.GothamBold Btn.TextSize = 10 Instance.new("UICorner", Btn)
            Btn.MouseButton1Click:Connect(function()
                if explicacion then MostrarMensajeSirviente(explicacion) end
                callback()
            end)
        end

        -- ==========================================
        -- ASIGNACIÓN DE SECCIONES COMPLETAS
        -- ==========================================
        AgregarSeparador("Soporte de Ayuda")
        CrearToggle("Modo Auto Sirviente", "AutoServant", "Modo Sirviente Activado. Te guiaré con explicaciones en cada función.")

        AgregarSeparador("Visuals & ESP")
        CrearToggle("ESP Activo", "ESP", "Revelando la silueta de todas las hormigas del servidor a través de muros.")
        CrearToggle("Filtrar Aliados", "TeamCheck", "Ocultando indicadores de tu propia colmena para no estorbar.")
        CrearToggle("Mostrar Distancia", "DistanciaESP", "Mapeando la distancia en studs en tiempo real.")

        AgregarSeparador("Lazy Tools & Automation")
        CrearToggle("Auto Clicker de Herramienta", "AutoClicker", "Haciendo clic continuo de forma automática con el objeto equipado.")
        CrearToggle("Auto Completar Prompts", "AutoProximity", "Activando instantáneamente cualquier botón de proximidad cercano.")
        CrearToggle("Auto Equipar Herramientas", "AutoEquip", "Asegurando que tu mandíbula o red esté siempre en tus manos.")

        AgregarSeparador("Safe Farming Local")
        CrearToggle("Auto Comer (Hojas/Azúcar)", "AutoEat", "Teletransportando a comida básica para alimentar tu hormiga.")
        CrearToggle("Auto Recoger Comidas Bono", "AutoCollect", "Buscando frutas doradas o bonos especiales por el mapa.")
        CrearToggle("Auto Recoger Huevos/Larvas", "AutoEgg", "Recolección automática de larvas y huevos desprotegidos.")

        AgregarSeparador("Navigation")
        CrearBotonAccion("Teleport Reina Hostil Aleatoria", "Buscando coordenadas de una reina enemiga para asalto directo.", function()
            local root = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
            if not root then return end
            local targets = {}
            for _, v in ipairs(workspace:GetDescendants()) do
                if (v.Name:lower():find("queen") or v.Name:lower():find("reina")) and (v:IsA("BasePart") or v:IsA("Model")) then
                    local aliada = false
                    if v:FindFirstChild("Team") and v.Team.Value == LocalPlayer.Team then aliada = true end
                    if not aliada then table.insert(targets, v) end
                end
            end
            if #targets > 0 then
                local t = targets[math.random(1, #targets)]
                root.CFrame = (t:IsA("BasePart") and t.CFrame or t:GetPivot()) + Vector3.new(0, 3, 0)
            end
        end)

        AgregarSeparador("Character Real Scale")
        local function AplicarEscala(val)
            local char = LocalPlayer.Character
            if char then
                local hum = char:FindFirstChildOfClass("Humanoid")
                if hum then
                    for _, prop in ipairs({"HeadScale", "BodyDepthScale", "BodyHeightScale", "BodyWidthScale"}) do
                        local s = hum:FindFirstChild(prop)
                        if s then s.Value = val end
                    end
                end
            end
        end
        CrearSlider("Escala de la Hormiga", 1, 4, "AntSize", "Redimensionando el cuerpo físico de tu hormiga.", function(val) AplicarEscala(val) end)

        AgregarSeparador("Physics & Movement 100% Funcional")
        CrearSlider("Velocidad Forzada Real", 16, 120, "WalkSpeed", "Incrementando la velocidad de aceleración del Humanoid.")
        CrearToggle("Auto Sprint Permanente", "AutoSprint", "Fijando velocidad de carrera constante.")
        CrearToggle("Modo Escape Automático", "EscapeMode", "Huyendo a máxima velocidad si un peligro se acerca a menos de 45 studs.")
        CrearToggle("Noclip Completo", "Noclip", "Desactivando colisiones físicas en tu estructura corporal.")

        AgregarSeparador("Sensors & Optimization")
        CrearToggle("Detector de Depredadores", "PredatorDetect", "Activado. Te avisaré si arañas o amenazas aparecen en el mapa.")
        CrearToggle("Anti AFK Servidor", "AntiAFK", "Simulando movimientos virtuales para que el juego no te desconecte.")
        CrearToggle("FPS Booster", "FPSBoost", "Removiendo texturas pesadas y sombras para subir los fotogramas.", function(val)
            if val then
                for _, v in ipairs(game:GetDescendants()) do
                    if v:IsA("Decal") or v:IsA("Texture") then v.Transparency = 1 end
                end
                Lighting.GlobalShadows = false
            else
                Lighting.GlobalShadows = true
            end
        end)

        AgregarSeparador("Configuraciones de Interfaz")
        CrearToggle("Diseño de Panel Alternativo", "InterfazPersonalizada", "Alternando el esquema de bordes y líneas decorativas de la interfaz.", function(val)
            StrokeMain.Color = val and Color3.fromRGB(255, 215, 0) or Color3.fromRGB(220, 20, 20)
        end)
        CrearToggle("Fondo Ultra Oscuro", "ModoOscuro", "Cambiando la opacidad del fondo principal para sesiones nocturnas.", function(val)
            MainFrame.BackgroundColor3 = val and Color3.fromRGB(6, 6, 8) or Color3.fromRGB(18, 18, 24)
        end)
        CrearToggle("Suavizado de Animaciones UI", "AnimacionesUI", "Ajustando los tiempos de respuesta visual al interactuar con el menú.")

        -- NUEVOS BOTONES DE ACCIÓN (SISTEMA Y JUGADOR)
        AgregarSeparador("Utilidades del Servidor")
        CrearBotonAccion("Reinicio del Personaje (Reset)", "Reiniciando estructura del personaje local mediante el Humanoid.", function()
            local char = LocalPlayer.Character
            if char then
                local hum = char:FindFirstChildOfClass("Humanoid")
                if hum then hum.Health = 0 end
            end
        end)
        
        CrearBotonAccion("Reconectarse al Servidor (Rejoin)", "Iniciando secuencia de reconexión al mismo identificador de servidor.", function()
            if #Players:GetPlayers() <= 1 then
                TeleportService:Teleport(game.PlaceId, LocalPlayer)
            else
                TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, LocalPlayer)
            end
        end)

        -- ==========================================
        -- BUCLES DEL MOTOR FÍSICO CONTINUO
        -- ==========================================
        RunService.Heartbeat:Connect(function()
            local char = LocalPlayer.Character if not char then return end
            local hum = char:FindFirstChildOfClass("Humanoid")
            local root = char:FindFirstChild("HumanoidRootPart")
            
            if hum and root then
                local vel = Config.WalkSpeed
                if Config.EscapeMode then
                    for _, p in ipairs(Players:GetPlayers()) do
                        if p ~= LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
                            if not Config.TeamCheck or p.Team ~= LocalPlayer.Team then
                                if (p.Character.HumanoidRootPart.Position - root.Position).Magnitude < 45 then
                                    vel = Config.WalkSpeed * 2.3
                                end
                            end
                        end
                    end
                end
                hum.WalkSpeed = (Config.AutoSprint and vel == 16) and 35 or vel
            end

            if Config.Noclip then
                for _, part in ipairs(char:GetChildren()) do
                    if part:IsA("BasePart") then part.CanCollide = false end
                end
            end

            if Config.AutoEquip then
                local bp = LocalPlayer:FindFirstChild("Backpack")
                if bp then
                    local tool = bp:FindFirstChildOfClass("Tool")
                    if tool then tool.Parent = char end
                end
            end

            if Config.AutoClicker then
                local tool = char:FindFirstChildOfClass("Tool")
                if tool then tool:Activate() end
            end
        end)

        -- Buscador seguro de elementos
        local function BuscarObjetosEntorno(tags)
            local distMin = 120
            local target = nil
            local root = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
            if not root then return nil end

            for _, v in ipairs(workspace:GetChildren()) do
                if v:IsA("BasePart") or v:IsA("Model") then
                    local n = v.Name:lower()
                    for _, tag in ipairs(tags) do
                        if n:find(tag) and not v:FindFirstAncestor("Spawn") then
                            local pos = v:IsA("BasePart") and v.Position or v:GetPivot().Position
                            local d = (pos - root.Position).Magnitude
                            if d < distMin and d > 1.5 then distMin = d target = v end
                        end
                    end
                end
            end
            return target
        end

        -- Repetidor de automatizaciones
        task.spawn(function()
            while task.wait(0.5) do
                pcall(function()
                    local char = LocalPlayer.Character
                    local root = char and char:FindFirstChild("HumanoidRootPart")
                    if not root then return end

                    if Config.AutoProximity then
                        for _, v in ipairs(workspace:GetDescendants()) do
                            if v:IsA("ProximityPrompt") then
                                local pPos = v.Parent:IsA("BasePart") and v.Parent.Position or v.Parent:GetPivot().Position
                                if (pPos - root.Position).Magnitude <= v.MaxActivationDistance then
                                    v:InputHoldBegin() task.wait(v.HoldDuration) v:InputHoldEnd()
                                end
                            end
                        end
                    end

                    if Config.AutoEat then
                        local comida = BuscarObjetosEntorno({"food", "sugar", "azucar", "leaf", "hoja"})
                        if comida then root.CFrame = (comida:IsA("BasePart") and comida.CFrame or comida:GetPivot()) + Vector3.new(0, 0.5, 0) end
                    end
                    if Config.AutoCollect then
                        local b = BuscarObjetosEntorno({"bonus", "golden", "star", "fruit"})
                        if b then root.CFrame = (b:IsA("BasePart") and b.CFrame or b:GetPivot()) + Vector3.new(0, 0.5, 0) end
                    end
                    if Config.AutoEgg then
                        local h = BuscarObjetosEntorno({"egg", "huevo", "larva"})
                        if h then root.CFrame = (h:IsA("BasePart") and h.CFrame or h:GetPivot()) + Vector3.new(0, 0.5, 0) end
                    end
                end)
            end
        end)

        -- Sistema de dibujo ESP
        task.spawn(function()
            while task.wait(0.6) do
                for _, p in ipairs(Players:GetPlayers()) do
                    pcall(function()
                        if p ~= LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
                            local rEnemigo = p.Character.HumanoidRootPart
                            local rLocal = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
                            local hl = p.Character:FindFirstChild("HubCham")
                            local bb = p.Character:FindFirstChild("HubDist")
                            local esAliado = Config.TeamCheck and (p.Team == LocalPlayer.Team or (not p.Neutral and p.TeamColor == LocalPlayer.TeamColor))

                            if Config.ESP and not esAliado then
                                if not hl then
                                    hl = Instance.new("Highlight") hl.Name = "HubCham"
                                    hl.FillColor = Color3.fromRGB(255, 0, 0) hl.FillTransparency = 0.4 hl.Parent = p.Character
                                end
                                if Config.DistanciaESP and rLocal then
                                    local dist = math.floor((rEnemigo.Position - rLocal.Position).Magnitude)
                                    if not bb then
                                        bb = Instance.new("BillboardGui") bb.Name = "HubDist"
                                        bb.Size = UDim2.new(0, 80, 0, 20) bb.AlwaysOnTop = true bb.StudsOffset = Vector3.new(0, 3, 0)
                                        local l = Instance.new("TextLabel", bb) l.Size = UDim2.fromScale(1,1) l.BackgroundTransparency = 1
                                        l.TextColor3 = Color3.fromRGB(255, 255, 255) l.Font = Enum.Font.GothamBold l.TextSize = 9
                                        bb.Parent = p.Character
                                    end
                                    bb.TextLabel.Text = tostring(dist) .. " Studs"
                                else
                                    if bb then bb:Destroy() end
                                end
                            else
                                if hl then hl:Destroy() end if bb then bb:Destroy() end
                            end
                        end
                    end)
                end
            end
        end)

        LocalPlayer.CharacterAdded:Connect(function(c)
            c:WaitForChild("Humanoid", 10) task.wait(0.6)
            AplicarEscala(Config.AntSize)
        end)

        -- Antiafk
        LocalPlayer.Idled:Connect(function()
            if Config.AntiAFK then
                pcall(function() VirtualUser:Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame) task.wait(0.2) VirtualUser:Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame) end)
            end
        end)

        -- Botón flotante para Ocultar/Mostrar
        local FloatBtn = Instance.new("TextButton", ScreenGui)
        FloatBtn.Size = UDim2.fromScale(0.16, 0.05) FloatBtn.Position = UDim2.fromScale(0.04, 0.14) FloatBtn.BackgroundColor3 = Color3.fromRGB(16, 16, 22)
        FloatBtn.Text = "MENU O/C" FloatBtn.TextColor3 = Color3.fromRGB(255, 255, 255) FloatBtn.Font = Enum.Font.GothamBold FloatBtn.TextSize = 10 Instance.new("UICorner", FloatBtn)
        local StrokeBtn = Instance.new("UIStroke", FloatBtn) StrokeBtn.Color = Color3.fromRGB(220, 20, 20)
        FloatBtn.MouseButton1Click:Connect(function() MainFrame.Visible = not MainFrame.Visible end)
    end

    -- Evento de verificación final
    CheckBtn.MouseButton1Click:Connect(function()
        if TextBox.Text == CLAVE_CORRECTA then IniciarScriptPrincipal() else TextBox.Text = "" TextBox.PlaceholderText = "❌ LLAVE NO VALIDA" end
    end)
end)

Features & Information

[Guerra de Hormigas🐜] Script. Spanish: Algunas funciones como Tamaño de el personaje o velocidad están desactivados por problemas del (Anti-Cheat) del mismo juego, si encuentras algún otro error fuera de eso comentalo en el Discord: https://discord.gg/JaPHxgNJd, | Con 2 conectados, aparte apoyaría mucho |. - Inglish: Some functions such as Character size or speed are disabled due to problems of the (Anti-Cheat) of the game itself, if you find any other error outside of that comment on it on the Discord: https://discord.gg/JaPHxgNJd, | With 2 connected, I would also support a lot |.
#FE#Game#War#OP

Community Comments (0)

No comments yet for this script.

More Scripts for Ant War 🐜