NPC Walk Anim When They Move

So I tried putting the player animation script into an NPC so they have a walking animation for when they move, but that didn’t work. Is there a way to make it work or will I have to manually script the animation in?

if you want to make npc walk anim when they move you should copy the animate script inside the character and paste to your npc
Example that Im make my player walk anim different:

I tried that. It didn’t work. They have an animation loaded when they walk, but it has no leg keyframes. I wanna have the default walk anim play over it so that they play at the same time. Would two animations interfere with eachother?

Try placing this script in your NPC, it works nicely for me.

3 Likes

Just a rough description of what you can do, this doesn’t include everything needed like pausing previous animations and stopping the run animation. Play around with this.
Humanoid.StateChanged
Enum.HumanoidStateType

Humanoid.StateChanged:Connect(function(old_state,new_state)
if new_state == Enum.HumanoidStateType.Running then
  RunAnim:Play()
end
1 Like

Oh hey. Thanks. I’ll try this out. However, I’ve tried something like this and the animation doesn’t run. I’ve tried deleting old animation so that it doesn’t have to play over something, but still nothing. But I’ll let you know if this works! <3

So it runs, but then it cancels when the other anim plays. Is it a problem with the other animation? Should I change it’s priority?

That might work but I wouldn’t rely on it entirely, it’s best you do checks before running any animations, example checking if the NPC is doing any other animations/actions before running another animations.