#Npc Follow Bug

1 messages · Page 1 of 1 (latest)

clever ravine
#

why when the player stands still the npc usually goes to him but as soon as the player starts moving the npc starts stopping but actually continue to follow player

tardy eagle
#

don't use movetofinished:wait(), it is a very common newb trap. do it properly https://create.roblox.com/docs/characters/pathfinding.
secondly, computeasync takes a bit to calculate a path, even a short path, add to this you're doing it on the server. there is some network latency involved there, the npc will always be slightly behind a moving player. best thing you can do is move directly towards the player if it has line of sight which saves a computeasync() call+wait.

clever ravine
#

So how can i change script

tardy eagle