#mob move to the second waypoint without touching the first one
1 messages · Page 1 of 1 (latest)
ignore background noise plz
it takes 12 seconds for each mob to increase its waypoint value
i figured out it is because of the "MoveToFinished" line just fires because theres a timeout to this line of code
still how do i fix it
4 seconds for the mob to spawn, and 8 seconds without it grtting to the first waypoint => timeout and it just increase the waypoint value
humanoid.movetofinished:wait() is a newb trap, do it properly: https://create.roblox.com/docs/characters/pathfinding
the problem is if i use pathfinding, the npc will move the shortest path to the waypoint
since roblox is down im gonna demonstrate it here
so if i use pathfinding in a tower defense game it will lowk look like this
if i wanted the npc to stop during its movement to the endpoint, then ill have to use movetofinished() again
well looks like you already have some pathfinding otherwise it wouldnt be moving around the character, or it might just be timing out:
more to the point, i'm more talking about the movetofinished connection. you're doing it wrong.
it times out after 8 seconds thats why its moving to the next waypoint before it has reached the first one
so instead of using pathfindingservice to generate the path, you already have the path using nodes (aka nodegraph), but your waypoint traversal still needs to be done the same as if you were using pathfindingservice
i just made the mobs pathfind to the waypoints and itworked now