Roblox disconnects players who don’t touch the keyboard or mouse for about 20 minutes. That’s the wall you hit when you try to AFK in The Forge by just leaving the game open. The fix is to keep sending real input, and the easiest way to do that is a looping macro.
This guide covers the full setup, from the macro itself to the settings on your computer that quietly ruin overnight runs.
The two ways to AFK in The Forge
Option 1: Anti-idle only. A macro that taps a key or nudges the camera every few minutes. It stops the kick, but your character does nothing useful.
Option 2: A farming loop. A recorded mining-and-forging routine on repeat. The input keeps you from being idle and you actually make progress. This is what most players mean by AFK in The Forge.
For option 2, record your loop first using our how to macro in The Forge guide. Then come back here for the AFK settings.
What you need
- A macro recorder. We recommend ExoPanda, which is free and runs on Windows and Mac.
- A recorded loop that you’ve already tested for at least three clean passes.
- A computer you can leave on.
Step 1: Make your computer stay awake
This is the step people skip, and it’s why runs end at 2 AM.
Windows: Settings, System, Power. Set “Screen” and “Sleep” to Never while plugged in.
Mac: System Settings, Lock Screen and Battery. Set the display to stay on, and prevent automatic sleeping on power adapter. A laptop should stay plugged in with the lid open.
Also turn off your screensaver and any lock-screen timer. A locked screen ignores the macro’s input.
Step 2: Make the loop self-healing
A loop that works for ten minutes might not work for ten hours. Build in resilience:
- End each pass at the starting spot. Every pass should reset to the same position and camera angle.
- Add waits, not guesses. If a forge takes a set time, wait a little longer than it.
- Keep your inventory in mind. If your inventory fills up, the loop stalls. Include a sell or store step on every pass, or every few passes.
If you notice the character slowly walking off course, that’s drift, and it’s the number one cause of dead AFK runs.
Step 3: Start the macro and watch the first few loops
Set the loop to run continuously (or a high count) in ExoPanda’s preferences, start playback, then stay and watch for a few full loops. If anything’s off, it’s much cheaper to catch now than in six hours.
Once it’s steady, don’t touch the mouse or keyboard. A single stray click can move the character and throw the loop off.
Step 4: Plan for the things that interrupt a run
| What interrupts it | What to do |
|---|---|
| Idle kick | Make sure the loop sends input constantly, not just once at the start. |
| Server restart or game update | Nothing, the macro can’t rejoin by itself. Check back and restart. |
| Wi-Fi drops | Use a wired connection if you can. |
| Computer sleeps | Turn off sleep and lock screen (Step 1). |
| Inventory full | Add a sell or store step. |
| Another window steals focus | Close apps with pop-ups or notifications. |
How long should you actually leave it?
Start short. Run it for 30 minutes, check, then an hour. Each time something goes wrong, fix it. By the time you reach multi-hour runs, you’ve eliminated the failures that would’ve ended them.
It’s also a good idea to not leave an unchecked macro running for very long stretches. The longer an unattended session runs, the more chances there are for something to go wrong, including a moderation flag. Our safety post covers that side.
Recommended setup in one list
- Install ExoPanda (Windows or Mac).
- Record one clean, self-resetting loop of mining and forging.
- Loop it, and test three passes while watching.
- Disable sleep, screensaver, and screen lock.
- Start it and watch for the first few loops.
- Check in at 30 minutes, then 1 hour, then lengthen from there.
ExoPanda is the macro recorder we recommend for The Forge. It's free, runs outside Roblox, and has native builds for Windows and Mac.
Frequently asked questions
How long can you AFK in The Forge?
Roblox’s idle timer disconnects you after roughly 20 minutes with no input. With a macro sending input, the idle timer isn’t what ends your session. Server restarts, game updates, internet drops, and your computer sleeping are.
Can I AFK The Forge with an auto clicker?
An auto clicker only clicks. It can stop the idle kick but can’t walk, mine, and forge in a loop. For farming you need a recorder. See auto clicker vs macro recorder.
Will my computer going to sleep stop it?
Yes. Turn off sleep and screen-lock in your power settings before you walk away, or the macro stops sending input.
Is AFK farming against the rules?
Roblox bans exploits that modify the client. Input-only macros are in a gray area and can still be flagged. Read is macroing in The Forge safe and decide for yourself.