#tower defense enemy script skipping waypoints after an while

3 messages · Page 1 of 1 (latest)

jagged gulch
#

I'm trying to make the zombie move to the waypoint and go to the other one but its skipping an waypoint
script:

local zombie = script.Parent
local waypoints = workspace.Waypoints

for waypoint=1, #waypoints:GetChildren() do
    zombie.Humanoid:MoveTo(waypoints[waypoint].Position)
    zombie.Humanoid.MoveToFinished:Wait()
end

And it skips one after not being able to go to it for a bit

distant harbor
#

Maybe your zombie speed is too low?

jagged gulch
#

how do i change it?