AFK farming in Universal Tower Defense Z is your passive income engine — generating Gems, Reroll Cubes, XP, and occasional Mythic shards while you sleep, work, or attend class. Unlike our AFK Gem Farming guide which focuses specifically on maximizing Gem rates, this guide covers the complete AFK resource picture: how each resource type generates passively, optimal team setups for different AFK goals, and how to balance AFK sessions with active play for maximum total income across all resources.
The Complete AFK Resource Picture
AFK farming in Infinite Mode generates multiple resources simultaneously. Understanding the full income picture helps you prioritize:
| Resource | AFK Hourly Rate | Daily (8hr) | Monthly | Strategic Value |
|---|---|---|---|---|
| Gems | 80K | 640K | 19.2M | Primary summoning currency |
| Reroll Cubes | 5-10 | 40-80 | 1,200-2,400 | Converts to Trait Rerolls |
| XP | Moderate | Moderate | Moderate | Unit leveling |
| Mythic Shards | ~0.5 | ~4 | ~120 | Low but free etherealization progress |
Total AFK Monthly Income
| Daily AFK Hours | Gems | Trait Rerolls (from cubes) | Mythic Shards | XP Equivalent |
|---|---|---|---|---|
| 4 hours | 9.6M | ~60 | ~60 | Moderate |
| 8 hours (overnight) | 19.2M | ~120 | ~120 | High |
| 12 hours | 28.8M | ~180 | ~180 | Very High |
| 24 hours | 57.6M | ~360 | ~360 | Maximum |
The combined monthly value of all AFK resources exceeds 20M Gems equivalent when you factor in the Trait Rerolls and Mythic shards that would otherwise cost active farming time.
AFK Team Builds by Priority
Different AFK goals require different team compositions. Here are optimized builds for each priority:
Build 1: Maximum Gems (Gold Priority)
| Slot | Unit | Trait | Why |
|---|---|---|---|
| 1 | Joyful Captain | Sacred/Ruler | Primary DPS wave clear |
| 2 | Gold Farmer #1 | Fortunate | +20% Gem income |
| 3 | Gold Farmer #2 | Fortunate | +20% Gem income (stacks with #1) |
| 4 | Ancient Mage | Sacred | Range backup DPS |
| 5 | Spirit Buffer | Astral | Team buff sustain |
| 6 | Shield Guardian | Sacred | Survivability padding |
Best for: Overnight AFK where maximum Gem income matters most.
Build 2: Maximum Reroll Cubes (Purple Priority)
| Slot | Unit | Trait | Why |
|---|---|---|---|
| 1 | Joyful Captain | Ruler | Fastest wave clear = more cube drops |
| 2 | Pirate King | Sacred | Quick boss kills for bonus cubes |
| 3 | Ancient Mage | Sacred | Range coverage for cube-rich waves |
| 4 | Spirit Buffer | Astral | Buffs increase clear speed |
| 5 | Farm unit | Fortunate | Sustained economy for long runs |
| 6 | Control unit | Astral | Enemy slowdown for sustained farming |
Best for: When you need Trait Rerolls for a trait chase (Ruler, Astral).
Build 3: Balanced All-Resource (Green Priority)
| Slot | Unit | Trait | Why |
|---|---|---|---|
| 1 | Joyful Captain | Sacred/Ruler | Core DPS |
| 2 | Farm unit | Fortunate | +20% Gem income |
| 3 | Spirit Buffer | Astral | Team sustain |
| 4 | Ancient Mage | Sacred | Range DPS |
| 5 | Pirate King | Prodigy | Boss/wave cleanup |
| 6 | Shield Guardian | Sacred | Survivability |
Best for: General overnight AFK with balanced income across all resources.
AFK vs Active Income Comparison — All Resources
| Resource | AFK Rate (8hr/day) | Active Rate (2hr/day) | AFK % of Total | Active % of Total |
|---|---|---|---|---|
| Gems | 640K (80K/hr) | 900K (450K/hr) | 42% | 58% |
| Trait Rerolls | ~120/day | ~100/day (Challenges) | 55% | 45% |
| Mythic Shards | ~4/day | ~10/day (Story Mode) | 29% | 71% |
| Exclusive Shards | 0 | 3-6/day (Raids) | 0% | 100% |
| Secret Shards | 0 | 0.5-1/day (Raids) | 0% | 100% |
| XP | Moderate | High | 30% | 70% |
Key insight: AFK provides 42% of Gem income and 55% of Trait Reroll income with zero effort. But Exclusive/Secret shards can ONLY come from active Raids. You need both AFK and active play for complete progression.
AFK Session Management
Session Planning by Play Schedule
| Player Type | AFK Hours | Active Hours | Total Daily Gems | Strategy |
|---|---|---|---|---|
| Casual (1hr/day) | 8hr overnight | 1hr Story Mode | 1.25M | AFK overnight + 1hr Story |
| Regular (2hr/day) | 8hr overnight | 2hr Story+Raid | 1.54M | Standard daily routine |
| Hardcore (4hr/day) | 12hr AFK | 4hr all modes | 3.6M | Maximize every hour |
| Weekend warrior | 16hr AFK (weekends) | 6hr (weekends) | Variable | Heavy weekends, AFK weekdays |
Daily AFK Routine
| Time | Action | Duration | Resource Focus |
|---|---|---|---|
| Wake up | Check AFK results, collect resources | 5 min | All AFK resources |
| Morning | Run 3 Daily Raids (active) | 30-45 min | Exclusive/Secret shards |
| Midday | Farm Story Mode (active) | 1-2 hours | Gems + Mythic shards |
| Evening | Complete Challenges + Quests | 20-30 min | Trait Rerolls + Gems |
| Bedtime | Set up AFK Infinite Mode | 5 min | All AFK resources |
AFK Sustainability Testing
Before committing to overnight AFK, run this 30-minute test:
| Test | Pass Criteria | Fix If Failed |
|---|---|---|
| 30-min survival | All units alive at 30 min | Add Support or Tank unit |
| Wave 50+ clear | Team reaches wave 50+ | Upgrade DPS or add sustain |
| No manual intervention | No clicks needed during test | Adjust placement or team |
| Gem income ticking | Gems counter increasing | Ensure Farm unit has Fortunate |
Common AFK Failure Points
| Failure Wave | Cause | Fix |
|---|---|---|
| Wave 20-30 | DPS too low | Evolve units or add stronger DPS |
| Wave 50-70 | No Support buffs | Add Astral Support unit |
| Wave 80-100 | Enemy scaling overwhelms | Etherealize primary DPS |
| Random | Glass cannon unit dies | Replace with tanky unit |
AFK Platform Optimization
| Platform | Stability | Power | Setup Tips | Rating |
|---|---|---|---|---|
| PC | ★★★★★ | Always on | Best for overnight AFK — set and forget | Recommended |
| Mobile (iOS) | ★★★ | Battery drains | Keep plugged in, disable auto-lock | Acceptable |
| Mobile (Android) | ★★★ | Battery varies | Use "Stay Awake" developer option | Acceptable |
| Xbox | ★★★★ | Always powered | Good alternative for long sessions | Good |
Preventing Disconnects
| Issue | Solution | Details |
|---|---|---|
| Roblox AFK kick | Auto-clicker or keep window active | Move mouse every 5-10 min |
| Internet dropout | Use wired connection | Wi-Fi unstable overnight |
| Client crash | Close other apps | Free up RAM for Roblox |
| Server restart | Check server status | Some Infinite servers restart periodically |
Reroll Cube Conversion Strategy
Reroll Cubes from AFK convert to Trait Rerolls:
| Reroll Cubes/Hour | Conversion | Trait Rerolls/Hour | Monthly (8hr/day) |
|---|---|---|---|
| 5-10 | 5 cubes = 1 reroll | 1-2 | 240-480 |
How to Spend AFK-Earned Rerolls
| Priority | Trait Target | Cost | When to Chase |
|---|---|---|---|
| 1 | Fortunate (Farm) | ~50 Rerolls (1% chance) | Always do this first |
| 2 | Sacred (DPS) | ~333 Rerolls (0.3% chance) | When farm is Fortunate |
| 3 | Astral (Support) | ~222 Rerolls (0.45% chance) | When you need Support buffs |
| 4 | Ruler (DPS) | ~1000 Rerolls (0.1% chance) | Only with 1000+ saved Rerolls |
See our traits guide for the complete trait priority breakdown.
XP and Leveling from AFK
AFK Infinite Mode provides moderate XP that helps level units over time:
| AFK Duration | XP Earned | Units Leveled | Impact |
|---|---|---|---|
| 8 hours | Moderate | 1-2 levels for low-level units | Passive leveling supplement |
| 24 hours | Significant | 3-5 levels | Noticeable for underleveled units |
| Weekly | Substantial | 10+ levels | Meaningful progress for secondary units |
Strategy: Place underleveled units in your AFK team alongside your carry DPS. They gain XP from waves even if they contribute little damage. This is especially useful for leveling newly obtained units.
Frequently Asked Questions
Can I AFK farm on mobile overnight? Yes, but PC is more stable. Keep your mobile device plugged in and disable auto-lock. Test with a 30-minute session first.
What happens if my team dies during AFK? You keep all resources earned up to the failure point. The run ends automatically. Run a 30-minute sustainability test before overnight sessions.
Should I optimize for Gems or Reroll Cubes in AFK? Gems for most players. The Gem income is more versatile (used for summoning, evolution, and team expansion). Only focus on Reroll Cubes when you are actively chasing a specific trait.
How do I prevent the Roblox AFK kick? Keep the game window active. Some players use auto-clickers that simulate mouse movement. Don't use exploitative tools — just prevent the idle timer.
Is AFK farming worth it compared to active farming? Yes — AFK runs during hours you cannot actively play. It is not a replacement for active Story Mode farming (3-6x faster per hour for Gems), but the combined approach of active + AFK maximizes your total daily income across all resources.
Does AFK farming give Etherealization shards? Only Mythic shards at a very low rate (~0.5/hr). Exclusive and Secret shards come exclusively from active Raids. See our etherealization guide for the complete shard farming strategy.