Humanoid:MoveTo doesn't work

What I want to accomplish is making the NPC cycle between points. I looked at the DevHub but the example in there doesn’t seem to work.

Here’s my code:

local pointA = workspace.pointA
			local pointB = workspace.pointB
			
			local humanoid = workspace.Dummy.Humanoid
			
			local currentPoint = pointA
			local nextPoint = pointB
			
			while true do
				print("test", nextPoint.Position)
				wait()
				humanoid:MoveTo(nextPoint.Position)
				humanoid.MoveToFinished:Wait()
				
				local tempPoint = nextPoint
				
				nextPoint = currentPoint
				currentPoint = tempPoint
			end

The NPC does not move even having an Animate script.

1 Like

There are something wrong with your Dummy, you can check out my model and it’s works pretty fine: MoveTo - Roblox

The only thing I do is set a description for the dummy from a Roblox user. Do you think thats affecting it?

1 Like

Yeah I think it’s the issue which is stops :MoveTo(), can you show me your output since it says the position of move? Or it’s not even run the code?

It runs the code but it doesn’t error or anything like that.

1 Like

I see gonna check with Humanoid Description if it’s the issue, so I can let you know about it more

Here is the Humanoid Description code by the way.

game.Players.PlayerAdded:Connect(function(player)

	local desc = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
	
	script.Parent.Humanoid:ApplyDescription(desc)



end)

This is inside the Dummy.

1 Like

Ok so I tested it and it’s also works pretty good

Could you try use my newest model and let me know if it’s works?

Try this: MoveTo(Updated) - Roblox

If it works then I think I know what the issue is.

It seems to work now. Maybe the Animate script was the issue?

1 Like

I just noticed that you’re used the dummy from Build Rig/outdated which is not has animator and MoveTo() so that’s why it would’t work as you knows. You can modify/add anything that you had and it will work now.

1 Like

Thanks! It works perfectly now.

1 Like

No problem! Glad to help! :blush: Good luck with your game!