How to play the default animation when using humanoid:MoveTo()

So I have a script that makes a npc move using the Pathfinding service and the humanoid:MoveTo() function. However instead of just moving the character, I want it to play the roblox walk animation. Any ideas of how I could do that?

Create an animation instance, then set the animation I’d of the default walk to it, then, load the animation to the NPC’s humanoid, then you would play it:

local Anim = Instance.new("Animation")
Anim.AnimationId = AnimationIdHere
local LoadedAnimation = NPC.Humanoid:LoadAnimation(Anim)

NPC.Humanoid:MoveTo()

LoadedAnimation:Play()

@Barty200
This thread may help:

1 Like

Is there a animation is for the default walk? If so could you tell me what it is?