Space Sh'mup score code

Godot Version

4.6.2 Stable

Question

I’m working on a tutorial to make a 2D side-scrolling space shooter. After setting everything up for the score system and registering remaining lives, I noticed the score increases if an enemy destroys the player ship. HI would like the game to only increase the player’s score when they destroy an enemy ship, and not when they get destroyed.
I thought to edit the script so that only a collision with the projectile would increase the score. That would , likely, require an if statement, but I don’t know how to format it to recognize the projectile but not the player.

Please review Posting guidelines in #Help channel