I tried to make a damage system without instant death, both for the player and the enemy, but I couldn't. I'll try to add this when I update it
There is a possibility that the attack didn't stop after hitting and the player/enemy took damage each update which resultet in an instant kill. If this was the problem, some sort of cooldown would fix it.
Obrigado. Iria fazer isso na v1.2 beta 1, porém perdi os arquivos e terei que refazer toda a v1.1 já no github tinha apenas a v1.0 salva