My script moves a npc to a tile but the npc teleports back shortly after

So i made a script that where if i click my npc and drag my mouse on a tile it will teleport the npc to said tile but then after a bit the npc teleports back
image
https://gyazo.com/83e3f6184b0597e15391b13ceae08a3f
Please help

1 Like