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.

Relic Hunt | OP AUTOFARM | F TO TURN ON

Version / Update: v1.0.0
Download / Script Link
-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

-- RemoteEvent reference
local BlockRemovedEvent = ReplicatedStorage:WaitForChild("Events"):WaitForChild("BlockRemoved")

-- Arguments that grant XP/Stars
local XP_ARGUMENTS = {"Deleted", 1, 3}

-- Configuration
local farmingEnabled = false
local farmInterval = 0.1 -- How fast to fire the event (in seconds)
local toggleKey = Enum.KeyCode.F -- Press 'F' to toggle farming

-- Loop for XP farming
local function startFarming()
if farmingEnabled then
local success, err = pcall(function()
BlockRemovedEvent:FireServer(unpack(XP_ARGUMENTS))
end)
if not success then
warn("Error firing BlockRemoved event:", err)
end
end
end

-- Connect to RenderStepped to fire the event at an interval
local lastFireTime = 0
RunService.RenderStepped:Connect(function(deltaTime)
if farmingEnabled then
lastFireTime = lastFireTime + deltaTime
if lastFireTime >= farmInterval then
startFarming()
lastFireTime = 0
end
end
end)

-- Toggle farming on/off with a keypress
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end

if input.KeyCode == toggleKey then
farmingEnabled = not farmingEnabled
if farmingEnabled then
print("XP/Star farming enabled! Firing BlockRemoved event every", farmInterval, "seconds.")
else
print("XP/Star farming disabled.")
end
end
end)

print("XP/Star farming script loaded. Press 'F' to toggle.")
[ View More ]
7ea84b08-8b34-4b5a-a5a6-bf2dc1cd1b36.webp


Its semi auto, the game is ass anyways
 
Back
Top