How to add walking animation to Rig

Whenever the model walks, its legs don’t move. How do I add a certain type of walking animation from the marketplace inside of him? Here is the script:

local NPC = game.Workspace.Rig

while true do
	NPC.Humanoid:MoveTo(game.Workspace.Part.Position) 
	NPC.Humanoid.MoveToFinished:Wait()
	wait(5)
	NPC.Humanoid:MoveTo(game.Workspace.Part2.Position)
	NPC.Humanoid.MoveToFinished:Wait()
	wait(5)
	NPC.Humanoid:MoveTo(game.Workspace.Part3.Position)
	NPC.Humanoid.MoveToFinished:Wait()
	wait(5)
	NPC.Humanoid:MoveTo(game.Workspace.Part4.Position)
	NPC.Humanoid.MoveToFinished:Wait()
	wait(5)
end

Feedback would be appreiciated!

Are the legs welded to anything in the rig?
For instructions on how to add animations: Animation | Documentation - Roblox Creator Hub

If you’re using MoveDirection to detect movement, MoveTo will not provide any direction in movement.