So its the ending of my game and im trying to set it so that when the enemy object hits the Floor it is destroyed and is counted in the destroyed setting, However its not being destroyed and its not counting in the destroyed counter. I've uploaded the script files if you need any more to help me solve the problem just ask. Thanks!
Try putting a debug.log line as the first line of the OnCollisionEnter2D(..) it'll confirm if the collision is being detected. Does the floor have a Collider2D?
Yes it does, i finally found the error it was that my referenced audio clip wasnt assigned in the inspector Thanks for helping me! sorry i was dumb haha.