as you can see in the video ive made a tds style game where zombies move to a set of waypoints
but its Humanoid.MovetoFinished isnt working as intended
heres the script
local zombie = script.Parent
local waypoints = workspace.Waypoints
for i,v in ipairs(waypoints:GetChildren()) do
zombie.Humanoid:MoveTo(v.Position)
zombie.Humanoid.MoveToFinished:Wait()
end
it did help a bit, they are going in the right direction but humanoid.MoveToFinished:Wait() still doesnt work and theyre still not going at waypoint 1 (what i mean is that they start going to the next waypoint early)
I’ve heard it not being very reliable. You could transition to a distance check instead, might work better for you.
local function isAtWaypoint(waypoint)
return (script.Parent.PrimaryPart.Position - waypoint.Position).Magnitude < 4
end
for i = 1, #waypoints:GetChildren() do
local waypoint = waypoints[tostring(i)]
while not isAtWaypoint(waypoint) do
zombie.Humanoid:MoveTo(waypoint.Position)
task.wait()
end
end
now they dont move at all, maybe there is something else wrong, i have seen a devforum having to do with network ownership or something i dont really know
See if there’s any output you’re getting, maybe I missed something. I edited my other post, could also need to move it continually if something is blocking it.