Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

(Please Help) Roblox cool animation sadly not "Working"?

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!

1 comment

0

Is the NPC anchored?

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.