So a made an animation and I wanted to add it to an npc. I scripted this:
wait(3) local hum = script.Parent.Humanoid
local anim = hum:LoadAnimation(script.Parent.Animation)
anim:Play()
But it still wont work. I also made an animation object and added the Id to it. Please help!
Try using:
local animation = script.Parent.Animation local hum = script.Parent.Humanoid local anim = hum:LoadAnimation(animation) anim:Play()
Make sure the NPC is unanchored and check to make sure that the animation is set on the 'Core' priority which you can set in settings on the animation editor.