Autofarm 路 RobloxExploits.lolAutofarm
MediorceExploiter 9 months ago 1.2K viewsRun it
Copy the script and paste it into your executor.
Autofarm.lua 路 195 lines
SCRIPT_ENABLED =
LOOP_FOREVER =
FIRE_DELAY_SECONDS =
PRELOAD_WAIT_SECONDS =
MAIN_WAIT_TIMEOUT =
TOUCH_HOLD_SECONDS =
RETURN_TO_START =
PRELOAD_OFFSET = .(, , )
TOUCH_OFFSET = .(, , )
PRIORITY_BUTTON_NAME =
DEBUG =
Players = :()
player = Players.LocalPlayer
(...)
DEBUG
(, ...)
(...)
(, ...)
()
character = player.Character player.CharacterAdded:()
hrp = character:(, )
character, hrp
()
:(, )
(model: Model):
model.PrimaryPart
model.PrimaryPart.CFrame
model:()
(model: Model): BasePart?
main = model:()
main main:() main
main = model:()
main main:() main
_, d (model:())
(d.Name == d.Name == ) d:()
d
(model: Model, timeout: number): BasePart?
start = .()
.() - start < timeout
SCRIPT_ENABLED
main = (model)
main main
.()
(hrp: BasePart, main: BasePart)
hrp.CFrame = main.CFrame + TOUCH_OFFSET
.(TOUCH_HOLD_SECONDS)
hrp.CFrame = main.CFrame
.()
(model: Model)
SCRIPT_ENABLED
_, hrp = ()
hrp
hrp.CFrame = (model) + PRELOAD_OFFSET
.(PRELOAD_WAIT_SECONDS)
main = (model, MAIN_WAIT_TIMEOUT)
main
( .. model.Name)
(hrp, main)
(folder: ): {Model}
buttons = {}
_, child (folder:())
child:()
.(buttons, child)
.(buttons, (a, b)
a.Name == PRIORITY_BUTTON_NAME
b.Name == PRIORITY_BUTTON_NAME
a.Name < b.Name
)
buttons
()
folder = ()
folder
()
_, hrp = ()
hrp
originalCFrame = hrp.CFrame
buttons = (folder)
(, #buttons)
i, model (buttons)
SCRIPT_ENABLED
(model)
i < #buttons
.(FIRE_DELAY_SECONDS)
RETURN_TO_START SCRIPT_ENABLED
hrp.CFrame = originalCFrame
(, SCRIPT_ENABLED)
.(()
LOOP_FOREVER
SCRIPT_ENABLED ()
SCRIPT_ENABLED
()
.()
)
About this script
Autofarms money, 1 mil per 30 minutes.
More for Ban or Get Banned 馃敤
--// ButtonsMoney Stream-Safe Auto Toucher (Client-sided, no GUI)
--========================
-- CONFIG
--========================
local
false
-- master ON / OFF
local
true
-- true = keep cycling, false = run once
local
0.25
-- delay between buttons
local
0.25
-- wait after teleport near model
local
1.0
-- max time to wait for Main to load
local
0.10
-- how long to stay touching Main
local
false
-- return to original position after full cycle
local
Vector3
new
0
8
0
-- teleport offset near button model
local
Vector3
new
0
2.25
0
-- offset when touching Main
-- Touch order
local
"Button4"
-- Debug output
local
true
--========================
-- SERVICES
--========================
local
game
GetService
"Players"
local
--========================
-- LOGGING
--========================
local
function
log
if
then
print
"[ButtonsMoney]"
end
end
local
function
warnlog
warn
"[ButtonsMoney]"
end
--========================
-- HELPERS
--========================
local
function
getCharacter
local
or
Wait
local
WaitForChild
"HumanoidRootPart"
10
return
end
local
function
getButtonsFolder
return
workspace
WaitForChild
"ButtonsMoney"
10
end
local
function
modelCFrame
CFrame
if
then
return
end
return
GetPivot
end
local
function
findMain
local
FindFirstChild
"Main"
if
and
IsA
"BasePart"
then
return
end
FindFirstChild
"main"
if
and
IsA
"BasePart"
then
return
end
for
in
ipairs
GetDescendants
do
if
"Main"
or
"main"
and
IsA
"BasePart"
then
return
end
end
return
nil
end
local
function
waitForMain
local
os
clock
while
os
clock
do
if
not
then
return
nil
end
local
findMain
if
then
return
end
task
wait
0.05
end
return
nil
end
--========================
-- CORE ACTIONS
--========================
local
function
touchMain
task
wait
-- ensure contact
task
wait
0.03
end
local
function
streamAndTouch
if
not
then
return
end
local
getCharacter
if
not
then
return
end
-- Step 1: preload/stream in by teleporting near the MODEL
modelCFrame
task
wait
-- Step 2: wait for Main to appear, then touch it
local
waitForMain
if
not
then
warnlog
"Main failed to load for "
return
end
touchMain
end
--========================
-- BUTTON ORDER
--========================
local
function
getOrderedButtons
Instance
local
for
in
ipairs
GetChildren
do
if
IsA
"Model"
then
table
insert
end
end
table
sort
function
if
then
return
true
end
if
then
return
false
end
return
end
return
end
--========================
-- MAIN CYCLE
--========================
local
function
runCycle
local
getButtonsFolder
if
not
then
warnlog
"ButtonsMoney folder not found."
return
end
local
getCharacter
if
not
then
return
end
local
local
getOrderedButtons
log
"Buttons found:"
for
in
ipairs
do
if
not
then
break
end
streamAndTouch
-- wait ONLY between buttons (not after the last one)
if
then
task
wait
end
end
if
and
then
end
end
--========================
-- START (NO EXTRA BREAK BETWEEN CYCLES)
--========================
log
"Script started. Enabled ="
task
spawn
function
while
true
do
if
not
then
if
then
runCycle
end
break
end
if
then
runCycle
-- immediately starts next cycle after this returns
else
task
wait
0.1
-- small idle sleep when disabled
end
end
end
Key