make a army BEST AUTOFARM RN open source
Key RequiredUniversal

make a army BEST AUTOFARM RN open source

Universal Scriptninedoubleyounineninedoubleyounine 1K views 78 executesUpdated Sep 29, 2025
Unrated
00
Lua Script•375 lines (12460 chars)
-- made by 9w9 :)

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local player = Players.LocalPlayer

-- Create GUI
local gui = Instance.new("ScreenGui")
gui.Name = "DistanceWalkerGUI"
gui.Parent = player:WaitForChild("PlayerGui")
gui.ResetOnSpawn = false

-- Main Frame
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 250, 0, 400)
frame.Position = UDim2.new(0.5, -125, 0.5, -200)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
frame.Parent = gui

local frameCorner = Instance.new("UICorner")
frameCorner.CornerRadius = UDim.new(0, 8)
frameCorner.Parent = frame

-- Title
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0, 40)
title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Text = "Distance Walker"
title.Font = Enum.Font.SourceSansBold
title.TextSize = 20
title.TextXAlignment = Enum.TextXAlignment.Center
title.Parent = frame

local titleCorner = Instance.new("UICorner")
titleCorner.CornerRadius = UDim.new(0, 8)
titleCorner.Parent = title

-- Status Label
local statusLabel = Instance.new("TextLabel")
statusLabel.Size = UDim2.new(0.9, 0, 0, 30)
statusLabel.Position = UDim2.new(0.05, 0, 0.1, 0)
statusLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
statusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
statusLabel.Text = "Status: Stopped"
statusLabel.Font = Enum.Font.SourceSans
statusLabel.TextSize = 14
statusLabel.Parent = frame

local statusCorner = Instance.new("UICorner")
statusCorner.CornerRadius = UDim.new(0, 6)
statusCorner.Parent = statusLabel

-- Parameter Inputs
local param1Label = Instance.new("TextLabel")
param1Label.Size = UDim2.new(0.9, 0, 0, 20)
param1Label.Position = UDim2.new(0.05, 0, 0.18, 0)
param1Label.BackgroundTransparency = 1
param1Label.TextColor3 = Color3.fromRGB(200, 200, 200)
param1Label.Text = "Param 1:"
param1Label.Font = Enum.Font.SourceSans
param1Label.TextSize = 14
param1Label.TextXAlignment = Enum.TextXAlignment.Left
param1Label.Parent = frame

local param1Box = Instance.new("TextBox")
param1Box.Size = UDim2.new(0.9, 0, 0, 30)
param1Box.Position = UDim2.new(0.05, 0, 0.22, 0)
param1Box.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
param1Box.TextColor3 = Color3.fromRGB(255, 255, 255)
param1Box.Text = "200"
param1Box.Font = Enum.Font.SourceSans
param1Box.TextSize = 14
param1Box.Parent = frame

local param1Corner = Instance.new("UICorner")
param1Corner.CornerRadius = UDim.new(0, 6)
param1Corner.Parent = param1Box

local param2Label = Instance.new("TextLabel")
param2Label.Size = UDim2.new(0.9, 0, 0, 20)
param2Label.Position = UDim2.new(0.05, 0, 0.3, 0)
param2Label.BackgroundTransparency = 1
param2Label.TextColor3 = Color3.fromRGB(200, 200, 200)
param2Label.Text = "Param 2:"
param2Label.Font = Enum.Font.SourceSans
param2Label.TextSize = 14
param2Label.TextXAlignment = Enum.TextXAlignment.Left
param2Label.Parent = frame

local param2Box = Instance.new("TextBox")
param2Box.Size = UDim2.new(0.9, 0, 0, 30)
param2Box.Position = UDim2.new(0.05, 0, 0.34, 0)
param2Box.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
param2Box.TextColor3 = Color3.fromRGB(255, 255, 255)
param2Box.Text = "200"
param2Box.Font = Enum.Font.SourceSans
param2Box.TextSize = 14
param2Box.Parent = frame

local param2Corner = Instance.new("UICorner")
param2Corner.CornerRadius = UDim.new(0, 6)
param2Corner.Parent = param2Box

local param3Label = Instance.new("TextLabel")
param3Label.Size = UDim2.new(0.9, 0, 0, 20)
param3Label.Position = UDim2.new(0.05, 0, 0.42, 0)
param3Label.BackgroundTransparency = 1
param3Label.TextColor3 = Color3.fromRGB(200, 200, 200)
param3Label.Text = "Param 3:"
param3Label.Font = Enum.Font.SourceSans
param3Label.TextSize = 14
param3Label.TextXAlignment = Enum.TextXAlignment.Left
param3Label.Parent = frame

local param3Box = Instance.new("TextBox")
param3Box.Size = UDim2.new(0.9, 0, 0, 30)
param3Box.Position = UDim2.new(0.05, 0, 0.46, 0)
param3Box.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
param3Box.TextColor3 = Color3.fromRGB(255, 255, 255)
param3Box.Text = "math.huge"
param3Box.Font = Enum.Font.SourceSans
param3Box.TextSize = 14
param3Box.Parent = frame

local param3Corner = Instance.new("UICorner")
param3Corner.CornerRadius = UDim.new(0, 6)
param3Corner.Parent = param3Box

-- Loop Count Controls
local loopCountLabel = Instance.new("TextLabel")
loopCountLabel.Size = UDim2.new(0.9, 0, 0, 30)
loopCountLabel.Position = UDim2.new(0.05, 0, 0.54, 0)
loopCountLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
loopCountLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
loopCountLabel.Text = "Loops per Frame: 10000"
loopCountLabel.Font = Enum.Font.SourceSans
loopCountLabel.TextSize = 14
loopCountLabel.Parent = frame

local loopCountCorner = Instance.new("UICorner")
loopCountCorner.CornerRadius = UDim.new(0, 6)
loopCountCorner.Parent = loopCountLabel

local addLoopButton = Instance.new("TextButton")
addLoopButton.Size = UDim2.new(0.45, -5, 0, 30)
addLoopButton.Position = UDim2.new(0.05, 0, 0.6, 0)
addLoopButton.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
addLoopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
addLoopButton.Text = "+1 Loop"
addLoopButton.Font = Enum.Font.SourceSans
addLoopButton.TextSize = 14
addLoopButton.Parent = frame

local addLoopCorner = Instance.new("UICorner")
addLoopCorner.CornerRadius = UDim.new(0, 6)
addLoopCorner.Parent = addLoopButton

local subtractLoopButton = Instance.new("TextButton")
subtractLoopButton.Size = UDim2.new(0.45, -5, 0, 30)
subtractLoopButton.Position = UDim2.new(0.5, 5, 0.6, 0)
subtractLoopButton.BackgroundColor3 = Color3.fromRGB(255, 120, 0)
subtractLoopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
subtractLoopButton.Text = "-1 Loop"
subtractLoopButton.Font = Enum.Font.SourceSans
subtractLoopButton.TextSize = 14
subtractLoopButton.Parent = frame

local subtractLoopCorner = Instance.new("UICorner")
subtractLoopCorner.CornerRadius = UDim.new(0, 6)
subtractLoopCorner.Parent = subtractLoopButton

-- Delay Controls
local delayLabel = Instance.new("TextLabel")
delayLabel.Size = UDim2.new(0.9, 0, 0, 30)
delayLabel.Position = UDim2.new(0.05, 0, 0.66, 0)
delayLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
delayLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
delayLabel.Text = "Delay: 0.010s"
delayLabel.Font = Enum.Font.SourceSans
delayLabel.TextSize = 14
delayLabel.Parent = frame

local delayCorner = Instance.new("UICorner")
delayCorner.CornerRadius = UDim.new(0, 6)
delayCorner.Parent = delayLabel

local addDelayButton = Instance.new("TextButton")
addDelayButton.Size = UDim2.new(0.45, -5, 0, 30)
addDelayButton.Position = UDim2.new(0.05, 0, 0.72, 0)
addDelayButton.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
addDelayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
addDelayButton.Text = "+0.001s"
addDelayButton.Font = Enum.Font.SourceSans
addDelayButton.TextSize = 14
addDelayButton.Parent = frame

local addDelayCorner = Instance.new("UICorner")
addDelayCorner.CornerRadius = UDim.new(0, 6)
addDelayCorner.Parent = addDelayButton

local subtractDelayButton = Instance.new("TextButton")
subtractDelayButton.Size = UDim2.new(0.45, -5, 0, 30)
subtractDelayButton.Position = UDim2.new(0.5, 5, 0.72, 0)
subtractDelayButton.BackgroundColor3 = Color3.fromRGB(255, 120, 0)
subtractDelayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
subtractDelayButton.Text = "-0.001s"
subtractDelayButton.Font = Enum.Font.SourceSans
subtractDelayButton.TextSize = 14
subtractDelayButton.Parent = frame

local subtractDelayCorner = Instance.new("UICorner")
subtractDelayCorner.CornerRadius = UDim.new(0, 6)
subtractDelayCorner.Parent = subtractDelayButton

-- Control Buttons
local startButton = Instance.new("TextButton")
startButton.Size = UDim2.new(0.9, 0, 0, 30)
startButton.Position = UDim2.new(0.05, 0, 0.78, 0)
startButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
startButton.TextColor3 = Color3.fromRGB(255, 255, 255)
startButton.Text = "Start Loop"
startButton.Font = Enum.Font.SourceSans
startButton.TextSize = 14
startButton.Parent = frame

local startCorner = Instance.new("UICorner")
startCorner.CornerRadius = UDim.new(0, 6)
startCorner.Parent = startButton

local stopButton = Instance.new("TextButton")
stopButton.Size = UDim2.new(0.9, 0, 0, 30)
stopButton.Position = UDim2.new(0.05, 0, 0.84, 0)
stopButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
stopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
stopButton.Text = "Stop Loop"
stopButton.Font = Enum.Font.SourceSans
stopButton.TextSize = 14
stopButton.Parent = frame

local stopCorner = Instance.new("UICorner")
stopCorner.CornerRadius = UDim.new(0, 6)
stopCorner.Parent = stopButton

local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0.9, 0, 0, 30)
closeButton.Position = UDim2.new(0.05, 0, 0.9, 0)
closeButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.Text = "Close"
closeButton.Font = Enum.Font.SourceSans
closeButton.TextSize = 14
closeButton.Parent = frame

local closeCorner = Instance.new("UICorner")
closeCorner.CornerRadius = UDim.new(0, 6)
closeCorner.Parent = closeButton

-- Credit Label
local creditLabel = Instance.new("TextLabel")
creditLabel.Size = UDim2.new(0.9, 0, 0, 40)
creditLabel.Position = UDim2.new(0.05, 0, 0.96, 0)
creditLabel.BackgroundTransparency = 1
creditLabel.TextColor3 = Color3.fromRGB(150, 150, 150)
creditLabel.Text = "Found with sigma spy\nFound by me and plague (scriptblox.com/u/plague)"
creditLabel.Font = Enum.Font.SourceSansItalic
creditLabel.TextSize = 12
creditLabel.TextWrapped = true
creditLabel.TextYAlignment = Enum.TextYAlignment.Top
creditLabel.Parent = frame

-- Loop Control
local looping = false
local loopCoroutine = nil
local delayTime = 0.01  -- Default delay in seconds (100 fires/sec)
local loopCount = 10000  -- Starting with 10000 loops as requested
local remote = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("DistanceWalked")

-- Update Labels
local function updateLoopCountLabel()
    loopCountLabel.Text = "Loops per Frame: " .. loopCount
end

local function updateDelayLabel()
    delayLabel.Text = string.format("Delay: %.3fs", delayTime)
end

-- Parse Parameter Inputs
local function getParamValue(textBox)
    local text = textBox.Text
    if text:lower() == "math.huge" then
        return math.huge
    end
    local num = tonumber(text)
    return num or 0  -- Default to 0 if invalid
end

-- Add/Subtract Loop Count
addLoopButton.MouseButton1Click:Connect(function()
    loopCount = loopCount + 1
    updateLoopCountLabel()
end)

subtractLoopButton.MouseButton1Click:Connect(function()
    if loopCount > 1 then
        loopCount = loopCount - 1
        updateLoopCountLabel()
    end
end)

-- Add/Subtract Delay
addDelayButton.MouseButton1Click:Connect(function()
    delayTime = delayTime + 0.001
    updateDelayLabel()
end)

subtractDelayButton.MouseButton1Click:Connect(function()
    if delayTime > 0.001 then
        delayTime = delayTime - 0.001
        updateDelayLabel()
    end
end)

-- Start Loop
startButton.MouseButton1Click:Connect(function()
    if not looping then
        looping = true
        statusLabel.Text = "Status: Running"
        statusLabel.BackgroundColor3 = Color3.fromRGB(0, 100, 0)
        loopCoroutine = coroutine.create(function()
            while looping do
                for i = 1, loopCount do
                    remote:FireServer(
                        getParamValue(param1Box),
                        getParamValue(param2Box),
                        getParamValue(param3Box)
                    )
                end
                task.wait(delayTime)
            end
        end)
        coroutine.resume(loopCoroutine)
    end
end)

-- Stop Loop
stopButton.MouseButton1Click:Connect(function()
    if looping then
        looping = false
        statusLabel.Text = "Status: Stopped"
        statusLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
        if loopCoroutine then
            coroutine.close(loopCoroutine)
            loopCoroutine = nil
        end
    end
end)

-- Close GUI
closeButton.MouseButton1Click:Connect(function()
    if looping then
        looping = false
        if loopCoroutine then
            coroutine.close(loopCoroutine)
        end
    end
    gui:Destroy()
end)

-- Initialize Labels
updateLoopCountLabel()
updateDelayLabel()

Features & Information

uhh idk it autofarms. click start loop

Community Comments (2)

UhrvnsUhrvnsSep 30, 2025

Pls make more product script

Replying to @Uhrvns

@Oehx ill try to upload one when i find one.

More Scripts for Universal Scripts