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) :