Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
ZeeBaine -15
4 years ago

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!

0
Is the NPC anchored? iiPizzaCraver 71 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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.

Ad

Answer this question