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 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
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)
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
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.