Need help for infinite runner game

I want to add like a magnet, that has a function of collecting coins easly like in subway surf, and something like invisibility, so when you pick it up you can go trough the obstacles