It doesn’t look like you’re updating playerCoords in that loop. If you don’t update that, then the script will never know you moved.
Whatever you’re doing to obtain playerCoords, do it inside the loop.
playerCoords