How to change color on collision

I was trying to add powerups to my program and I was trying to change my square players color on collision and I could not find code that would help me so I decided to come to the forums to ask for help

You should try clarify what your actuall issue is and what you’ve already tried. Do you not know how to detect collisions and/or not know how to change the colour (we have to assume you mean the SpriteRenderer too). Hopefully the link above will help.