It seems the problem is that you did not connect the signals to the enemy2
instance. This meant that every time you hit an enemy (didn't matter which one), it always damaged the enemy
node and never the enemy2
node.
For the hit
signal from the player, you needed to connect for enemy2
:

Same for the attack_entered
signal:

And the enter_entered
:

Here is a zip of the working project: https://drive.google.com/file/d/1Pz1jA7qosIve-t5ppj6aPx7yQf-mrbwK/view?usp=sharing Note that I changed the damage done from 1 to 100 so that you don't have to hit it so many times in order to test.