I need someone's help with attack behaviour

So i need my character sword slash animation to kill enemies, keybind would be space, and the enemy should die in 2 hits, can anyone help please?
My game link: Flowlab Game Creator - Forest Of Lurker
dear-lord