How could I make it so when the player rolls into an enemy, he will destroy it and not get hurt

I need a way to make it so when he rolls into enemies, he will destroy them and not lose rings and when he walks or runs into them, he will. is that possible? if so, how?

Sonic? lol


thankyou so much!

john you forgot to make the animation flip when it goes backwards :slight_smile:

Oh it’s not an animation