Project Zomboid Debug Scenarios |verified| May 2026
function MyScenario:OnStart() -- Teleport to coordinates (x, y, z) getPlayer():setX(12000) getPlayer():setY(8500) -- Start a helicopter event SandboxVars.DebugHeli = true triggerHelicopter()
In Debug Mode, you can finally cheat death. But the helicopter still hates you. To get started: enable -debug , open the Debug menu, and click “Scenarios.” Then save the world — or burn it down. project zomboid debug scenarios
-- Spawn 50 zombies nearby for i = 1,50 do local zombie = createZombie(getPlayer():getX() + (i % 10), getPlayer():getY() + math.floor(i/10)) zombie:setTarget(getPlayer()) end -- Spawn 50 zombies nearby for i =
Whether you want to practice fighting 500 sprinters, film a cinematic base defense, or break the game in spectacular ways, Debug Scenarios give you the keys to the apocalypse. | Risk | Solution | |------|----------| | Save
Then register it in DebugScenarios/registry.lua . Restart the game, and your scenario appears in the list. | Risk | Solution | |------|----------| | Save corruption | Always backup %UserProfile%/Zomboid/Saves/ | | Unstable mod interactions | Test scenarios in a new save, not your main | | Accidentally breaking the timeline | Avoid saving after irreversible events (e.g., max erosion) | | Multiplayer desync | Debug scenarios are single-player only (without server mods) | The Community & Creative Use The Debug Scenarios system has spawned an entire sub-community of “Zomboid Scenario Designers.” They release scenario packs ( .lua files) on the Steam Workshop, recreating moments from 28 Days Later , Dawn of the Dead , and The Last of Us .
A simple custom scenario example ( MyScenario.lua ):