How to end game when all enemies are destroyed?

Could you tell me what doesn’t work of your script?

The “destroyed” event?

If you put some “print” node we can see where the script stops and then fix it

Ps: could you show me where you call the “apply damage” node?