I need help with making a function to kill enemies

so im making this binding of isaac type roguelike game for a school project and probably personal project, anyways i was wondering what was wrong with this

i am just wondering how i can make this work.
heres the game link

1 Like

no need anymore i have found a fix to the issue