What's new
Heapleak - Scripthub

Get the most out of HeapLeak by creating a free account! Once signed in, you’ll gain full access to restricted content, be able to share your own scripts, and participate in our member-only discussions.

Auto Money

Version / Update: v1.0.0
Download / Script Link
-- =========================
-- SERVICES & PLAYER
-- =========================

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

repeat task.wait() until LocalPlayer:FindFirstChild("taskFolder")

-- =========================
-- STATE
-- =========================

local running = false
local injected = false

-- =========================
-- GUI
-- =========================

local gui = Instance.new("ScreenGui")
gui.Name = "MoneyAuto"
gui.Parent = game.CoreGui

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 240, 0, 150)
frame.Position = UDim2.new(0.4, 0, 0.35, 0)
frame.BackgroundColor3 = Color3.fromRGB(18,18,18)
frame.Active = true
frame.Draggable = true

local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1,0,0,30)
title.Text = "Money Auto"
title.Font = Enum.Font.GothamBold
title.TextSize = 14
title.TextColor3 = Color3.new(1,1,1)
title.BackgroundTransparency = 1

-- =========================
-- CLOSE BUTTON (X)
-- =========================
local closeBtn = Instance.new("TextButton", frame)
closeBtn.Size = UDim2.new(0, 30, 0, 30)
closeBtn.Position = UDim2.new(1, -35, 0, 0)
closeBtn.Text = "X"
closeBtn.Font = Enum.Font.GothamBold
closeBtn.TextSize = 14
closeBtn.TextColor3 = Color3.new(1,1,1)
closeBtn.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
closeBtn.BorderSizePixel = 0

closeBtn.MouseButton1Click:Connect(function()
gui:Destroy()
end)


local startBtn = Instance.new("TextButton", frame)
startBtn.Size = UDim2.new(0.45,0,0,42)
startBtn.Position = UDim2.new(0.05,0,0.45,0)
startBtn.Text = "START"
startBtn.Font = Enum.Font.GothamBold
startBtn.TextSize = 14
startBtn.TextColor3 = Color3.new(1,1,1)
startBtn.BackgroundColor3 = Color3.fromRGB(0,170,0)

local stopBtn = Instance.new("TextButton", frame)
stopBtn.Size = UDim2.new(0.45,0,0,42)
stopBtn.Position = UDim2.new(0.5,0,0.45,0)
stopBtn.Text = "STOP"
stopBtn.Font = Enum.Font.GothamBold
stopBtn.TextSize = 14
stopBtn.TextColor3 = Color3.new(1,1,1)
stopBtn.BackgroundColor3 = Color3.fromRGB(170,0,0)

-- =========================
-- CORE LOGIC
-- =========================

local function injectTaskOnce()
if injected then return true end

local myFolder = LocalPlayer.taskFolder

-- If task already exists, do NOT paste again
if myFolder:FindFirstChild("KillEntity") then
injected = true
return true
end

-- Find task from another player
local sourceTask
for _, plr in ipairs(Players:GetPlayers()) do
if plr ~= LocalPlayer and plr:FindFirstChild("taskFolder") then
local t = plr.taskFolder:FindFirstChild("KillEntity")
if t then
t.Archivable = true
sourceTask = t
break
end
end
end

if not sourceTask then
warn("KillEntity task not found")
return false
end

-- Clear your tasks ONCE
for _, v in ipairs(myFolder:GetChildren()) do
v:Destroy()
end

-- Paste task
local clone = sourceTask:Clone()
clone.Parent = myFolder

repeat task.wait() until clone:GetAttribute("Finished") ~= nil

injected = true
return true
end

local function setupRewardsOnce()
local GS = ReplicatedStorage:WaitForChild("GameStorage")
local TaskItems = GS:WaitForChild("TaskItems")
local Rewards = GS:WaitForChild("TasksItemRewards")

for _, r in ipairs(Rewards:GetChildren()) do
r:Destroy()
end

local ak = TaskItems:FindFirstChild("AK74U")
if ak then
ak:Clone().Parent = Rewards
end
end

local function startFinishedToggle()
running = true
task.spawn(function()
while running do
local taskObj = LocalPlayer.taskFolder:FindFirstChild("KillEntity")
if taskObj then
taskObj:SetAttribute("Finished", true)
task.wait(0.25)
taskObj:SetAttribute("Finished", false)

-- 2–3 second human delay
task.wait(math.random(20,30) / 10)
else
task.wait(1)
end
end
end)
end

-- =========================
-- BUTTONS
-- =========================

startBtn.MouseButton1Click:Connect(function()
if running then return end

if injectTaskOnce() then
setupRewardsOnce()
startFinishedToggle()
print("▶ Money Auto running")
end
end)

stopBtn.MouseButton1Click:Connect(function()
running = false
print("⏹ Money Auto stopped")
end)
[ View More ]
d2e99b66-1d66-4b04-930a-abbe803d29a3.webp


Auto Farms Money in the game (made by chatgpt)if it does good ill drop a bunch more scripts i have for the game
 
Back
Top