Trying to emulate Baldurs Gate movement

Hi I am trying to make the classic Baldurs Gate movement where you click on a point and the player goes to that point and stops when the point is reached.

The problem is the following: I click on a point and an object gets generated called playerGoTo. The object player goes to PlayerGoTo and when they collide the player stops and the object playerGoTo gets deleted. But I have a problem, what if I click on a point and before reaching said point I want to click on another point to change directions? The problem is that the first playerGoTo object remains in the screen

Before you create the playerGoTo object, delete playerGoTo. This will remove any existing playerGoTo objects.