How to make my character change his location when he collides with an object

I’m making a puzzle game and I need the character to respawn(change his location) when he collides with an object, please help I know only the basics of coding :I…