I'm not sure if I understood correctly. I've added an instance variable that checks if you have the coin or not. So if you die and don't have the coin, nothing happens to the score, and if you die and you have the coin, subtract 1 to the score.
Tell me if this is not what you wanted and try to explain it again.
By the way, you are using too many sprites and the system has to check a lot of collisions which is not good for performance. Instead of using a lot of small sprites, use the Tiled Background object, that way the system will only have to check very few objects.
Thanks again for the reply Xaiver. Let me clarify it better for you because it is really confusing to explain.
So think of it like this. You start the level. You grab the coin. Your score is now 1/30 because you have 1 of the 30 coins in the game. Now lets say you go to the next level of the game with the score of 1/30 and die to something. Your score would go to 0/30 and you couldn't go back to get the coin. What I am trying to say is, is there a way to save the 1/30 after completing the level?
Or if you possibly can, make it so when you get the coin it doesn't respawn and your score is saved as 1/30. Thanks again for your help, I have been stumped on this.