noob army tycoon script by ai very simple
Key Required

noob army tycoon script by ai very simple

Noob Army Tycoon ⚔️(New noobs)janicki535janicki535 1.7K views 656 executesUpdated Apr 4, 2026
Unrated
00
Lua Script•102 lines (3264 chars)
local TweenService = game:GetService("TweenService")
local Player = game.Players.LocalPlayer
local pGui = Player:WaitForChild("PlayerGui")

-- Usuwanie starego GUI
if pGui:FindFirstChild("AutoFarmGui") then pGui.AutoFarmGui:Destroy() end

-- Tworzenie GUI
local sg = Instance.new("ScreenGui", pGui)
sg.Name = "AutoFarmGui"

local frame = Instance.new("Frame", sg)
frame.Size = UDim2.new(0, 200, 0, 100)
frame.Position = UDim2.new(0.1, 0, 0.5, -50)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.Active = true
frame.Draggable = true

local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0, 30)
title.Text = "Auto-Farm Obby"
title.TextColor3 = Color3.new(1, 1, 1)
title.BackgroundColor3 = Color3.fromRGB(50, 50, 50)

local toggleBtn = Instance.new("TextButton", frame)
toggleBtn.Size = UDim2.new(0.8, 0, 0.4, 0)
toggleBtn.Position = UDim2.new(0.1, 0, 0.45, 0)
toggleBtn.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
toggleBtn.Text = "OFF"
toggleBtn.TextColor3 = Color3.new(1, 1, 1)
toggleBtn.Font = Enum.Font.SourceSansBold

local close = Instance.new("TextButton", frame)
close.Size = UDim2.new(0, 20, 0, 20)
close.Position = UDim2.new(1, -25, 0, 5)
close.Text = "X"
close.BackgroundColor3 = Color3.new(0.6, 0, 0)
close.MouseButton1Click:Connect(function() sg:Destroy() end)

-- LOGIKA
local isFarming = false

local function FastTeleportAndTrigger(namePart)
    local char = Player.Character
    local root = char and char:FindFirstChild("HumanoidRootPart")
    if not root then return false end

    for _, v in pairs(game:GetDescendants()) do
        if v:IsA("ProximityPrompt") and (v.Parent.Name:find(namePart) or v.ActionText:find(namePart)) then
            local targetCFrame = v.Parent.CFrame
            
            -- Szybki ruch (Tween)
            local t = TweenService:Create(root, TweenInfo.new(0.15), {CFrame = targetCFrame})
            t:Play()
            t.Completed:Wait()
            
            -- Aktywacja
            v:InputHoldBegin()
            v:InputHoldEnd()
            task.wait(0.05)
            return true
        end
    end
    return false
end

-- PĘTLA FARMIEANIA
task.spawn(function()
    while true do
        if isFarming then
            local char = Player.Character
            local root = char and char:FindFirstChild("HumanoidRootPart")
            
            if root then
                local startPos = root.CFrame
                
                -- Krok 1: Teleport do Obby
                FastTeleportAndTrigger("Teleport to obby 11")
                task.wait(0.2)
                
                -- Krok 2: Odbiór kasy
                FastTeleportAndTrigger("Claim 20000$")
                
                -- Krok 3: Powrót (opcjonalnie, żeby nie stać w miejscu nagrody)
                root.CFrame = startPos
            end
        end
        task.wait(0.5) -- Czas między cyklami (zmień na mniejszy dla szybkości)
    end
end)

-- Przełącznik
toggleBtn.MouseButton1Click:Connect(function()
    isFarming = not isFarming
    if isFarming then
        toggleBtn.Text = "ON (Farming...)"
        toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 0)
    else
        toggleBtn.Text = "OFF"
        toggleBtn.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
    end
end)

Features & Information

10k/s

Community Comments (1)

zakgx93zakgx93Apr 4, 2026

doesnt do anything

More Scripts for Noob Army Tycoon ⚔️(New noobs)