This bit of code sets your score and number of coins to zero. If you collect any points or coins, an event will trigger (I've put in four: Warping the player to the screen exit, killing the player, hurting the player, or resetting the game).
You should probably not make collecting coins reset the game unless you're a real jerk.
Definitively an improvement to the previous version. Works now with 2 players and has overall a better code. Only that the teleport brings you to the screen exit instead of a fixed teleport destination could have been changed.