humanoid:MoveTo() not working?

I’m trying to create an NPC that walks in a certain pattern, but I can’t get it to actually move.

local plr = game.Workspace.NPC
local part = game.Workspace.Target

plr.Humanoid:MoveTo(part.Position)

This is the code, and there’s no errors. What am I doing wrong?

What kind of script is this and where is it? If you put print("something") before/after your code, does it print? This code works fine for me, so I’m not sure why it wouldn’t work for you.

1 Like

Oh my lordie I had it in Workspace just for testing, but it works in ServerScriptStorage.

1 Like