Humanoid:MoveTo() is broken with low humanoid speed

Hello, im making a generic tower defense game on my own and there is zombies spawn in waves. Zombies are smaller than player character and they are slower moreover each one has their own speed based on their topic, like speedy is faster, normal is normal, boss is slow.

I use this code snippet to make mobs move:

	local humanoid = mob:FindFirstChild('Humanoid')
	
	for i = 1, #pathIndicators:GetChildren() - 1, 1 do
		humanoid:MoveTo(pathIndicators["PathIndicator"..i].Position)
		humanoid.MoveToFinished:Wait()
	end
	
	mob:Destroy()

They move but not the exact position, cant just describe it.

Here is a video, the first 3 zombies are at default speed (16), and the next 3 zombies are at their own speed (1) :

It’s not broken. humanoid:MoveTo() has a timeout of 8 seconds. Take a look at the documentation and sample at the WalkToPoint() section of Humanoid | Documentation - Roblox Creator Hub. Applies to MoveTo() as well.

Except the code could now be updated and adjusted to :Once() instead of :Connect().

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.