How do i set that i can pick the coin up

There is a platformer example that also covers coin collection

If you have a score variable, add an event where the player is colliding with the coin. Add 2 actions to this event, one being to delete the coin and another to change the score variable by whatever you want.