Animating a npc Walk

Hey, I’m trying to make a R15 NPC walking animate script.The issue is - i do not know how to do that. I have tried looking on the DevForum but i found nothing. I also tried copying the R15 animate from character but it doesn’t work good. Is there a way to make this?

I will appreciate any answers.

I think that the Animate Script is intended to be used with a real player not a NPC.
You should create a controller for your NPC if you want it to be animated.
But, usually its not complicated depending on your NPC, its just loading the animations and play them as needed.

local AnimTrack1 = NPC.Humanoid.Animator:LoadAnimation(theAnimationYouCreated)
AnimTrack1:Play()
AnimTrack1:Stop()

Play the walk animation when NPC is moving, or jump when jumping, or when idle. Just script the behaviour of your NPC based on its functions and events

1 Like

Did you try copy pasting the content from the animate script into a server sided script?

1 Like

That doesn’t seem to work. It is really glitched.

Yes, but it really looks cursed

Wdym, could you elaborate on that?

1 Like

Well, i changed the id of the animations in the script but they still had orginal animations from r15

Maybe you forgot to change the id’s in the values under the script? If this doesn’t work you could probably just manually script a detection system for walking

game:GetService("RunService").Heartbeat:Connect(function()
if humanoid.MoveDirection.Magnitude > 0 then
if not animation.IsPlaying then
animation:Play()
end
else
animation:Stop()
end
end)
1 Like

I just tried changing the r15 script because there were values inside the Animate script, but it still has basic animations, not the ones i changed the id of

1 Like

I don’t think the R15 script without making changes is gonNa work

You’ve must edit id’s of every animation that located under every value objects from Animate script and also change some animations which you have edited in the script.
Screenshot_2

1 Like

It works really good. Tysm for help :smiley:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.