Hello,
My main objective is to move a NPC from one point to another. I have read many tutorials and believe I am doing everything correct. However, the NPC is NOT moving one little bit. The NPC is a RB6 model “Moving NPC” where I deleted the moving script underneath and instead put a new script that does the following:
local NPC = game.Workspace.MyNpc.Humanoid
while true do
wait(5)
print("NPC be walking") -- This section doesn't work
NPC:MoveTo(game.Workspace.WalkTo1.Position)
NPC.MoveToFinished:Wait();
print("He done walking")
end
I have attached a very simple .rbxl file that demonstrates the issue. The part “WalkTo1” is a non-collidable part and everything is on a pretty flat terrain. The code above WILL work if the game is a simple flat Baseplate. However, once the terrain was added… the NPC will no longer walk.
Any help or suggestions of things to try is very much appreciated.
testMoveTo.rbxl (196.0 KB)
Thanks,
Smyrki