Hello,
The script you made is awesome, however I have a question and I couldn't have found answer myself:
How can I make an enemy, which is not resurrected after I change the map? Problem is, that I'm making some enemies, kill them, going to another map, and then after come back enemies are still alive and ready to fight once again. This behavior occurs in your demo too.