:MoveTo() Not Working

Hey there,

I’ve got a very quick question/problem. I am probably missing something very obvious, but I thought I would post here to see if I could get some help.

This script is a test script, and won’t be used for anything other than test purposes. I am attempting to use the :MoveTo() function, but the rig does not seem to move. Any ideas would be very helpful!

wait(10)

local target = game.Players.CadenDevelops

local hum = script.Parent.Humanoid
local humRoot = script.Parent.HumanoidRootPart

local rs = game:GetService("RunService")

while wait() do
	hum:MoveTo(target.Character.HumanoidRootPart.Position)
	
	hum.MoveToFinished:Wait()
end

First, make sure no parts of the rig are anchored, then check WalkSpeed, or are there any errors?

It is working now, turns out some parts were anchored.

Another thing, do you know of a way that Ij could make the movement smoother? What types of functions should I use? Is there an alternative to MoveTo that is smoother? I am trying to make a zombie game, so I need very smokoth rigs.

What do you mean by smooth? If you’re talking about how it moves to a point, and very jerkily moves to the next, you could look at the second parameter in :MoveTo() which takes a part so you could set that to the player and it would follow the player smoothly, even if they move

The wait call can be removed, MoveToFinished:Wait performs the necessary yielding already.

while true do
	Humanoid:MoveTo(Vector3.new(0, 0, 0)) --Example world position.
	Humanoid.MoveToFinished:Wait() --This yields already (no need for 'wait').
end