ADVERTISEMENTREMOVE ADS
OP AUTOFARM | F TO TURN ON
37,762 views

Script Preview
Description
Its semi auto, the game is ass anyways
Features:
- OP
ADVERTISEMENTREMOVE ADS
55 Lines • 1.73 KiB
-- 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.")
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS







Comments