A simple script to prevent Roblox from kicking you after 20 minutes of activity, originally developed for Grow a Garden on Roblox but usable anywhere.
lua52.exe anti-afk-garden.lua
-- anti-afk-garden.lua
while true do
os.execute("nircmd.exe sendmouse left click")
os.execute("timeout /t 30 >nul")
end
The project must contain all scripts and binary files in the same folder. This project is only available for Windows.
same script but in python, made for macos.
import pyautogui
import time
import os
while True:
os.system('clear')
print("Grow a Garden anti-afk")
print("Anti AFK enabled")
os.system("open /Applications/Roblox.app")
time.sleep(1)
pyautogui.click()
time.sleep(60)