You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I’d like my regular zombie NPCs to reach their end destination.
-
What is the issue? The regular zombie NPCs are stopping before they reach the waypoint, while the other zombies are going to the waypoint normally.
-
What solutions have you tried so far? I’ve looked online and haven’t found that many solutions yet.
Here is my current code so far:
local humanoid = zombie:WaitForChild("Humanoid")
local waypoints = map.Waypoints
for i=1, #waypoints:GetChildren() do
humanoid:MoveTo(waypoints[tostring(i)].Position)
humanoid.MoveToFinished:Wait()
end
Here is a video demonstrating the issue:
https://gyazo.com/f603aae3bac4fb1500975172a0487552