How do i set a walk animation for my NPC

I have made a custom NPC that moves perfectly fine when i script that its gonna move to a place, I’ve also made a custom walking animation but idk how to properly set it as the walk animation, So whenever it moves it will play the animation, Does anyone know a simple way how?

Change its Animate.walk.WalkAnim.AnimationId to “rbxassetid://animationId”.

And where is that? is it in a script?

Yes, it’s in the character. It’s also a LocalScript.

Nope i havent added a local script to it

I’m pretty sure you need an Animate script for NPCs…

its okay i solved it, I just changed the humanoid hip height, ty anyway