GMS 2 [HELP] Character returning to start position


Hi everyone!

NEED: I want to make a game where the player can return back at his start position. However, I don't know how to create this system.

EXPLANATION: When we click with the mouse button, the player will move to the nearest object or enemy (I KNOW HOW TO MAKE THE NEAREST SCRIPT). When the player hit the object or enemy, he will return to his start position. The start position of the player will be the same for the game.

Thank you!