Count score do not increase until the last enemy in a group is killed

Godot Version

Godot 4

Question

I have an array of enemies of the same type that have been “group”. After that, I used “signal” to calculate the number of enemies killed.

However, count score only begin to increase when the last enemy in the “group” killed.

I’m a newbie, please tell me why.

Lets see your code.

Thanks everyone, I found the problem.