Hello everyone!
My game has an issue regarding the :MoveTo() function for the humanoid.
Take a look (The upload did not work)…
The zombies are supposed to TOUCH each waypoint before going to the next, but instead, the zombies are going BEFORE the waypoint.
I have checked all of the hitboxes and things like that, everything is perfect!
Here is my code if you are wondering:
function mob.Move(mob, map)
local humanoid = mob:WaitForChild("Humanoid")
local waypoints = map.Waypoints
for waypoint = 1, #waypoints:GetChildren() do
humanoid:MoveTo(waypoints[waypoint].Position)
humanoid.MoveToFinished:Wait()
end
mob:Destroy()
end
Please help!
Thanks a lot.
-GreenTree Gaming