#Animation Not Playing

1 messages · Page 1 of 1 (latest)

lost portal
#

Hey!

So it's probably a minor thing i'm missing, since I'm still learning and researching, but i wanted to make a subtle animation on a rig for when in a cutscene, to make them nod as if they were talking, and since the area is unused otherwise i decided to have it just loop. Except it isn't playing:( I made the animation on the same rigs to eliminate r6 and r15 possibly, published it to my toolbox and used the asset ID from there, but to no avail.

I don't know how to post a screenshot of my script (might be able to in comments) but it would be great to get some insight to see if I've missed something.

#

ahh no photos, ill copy it on

#

local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local nod = humanoid:LoadAnimation(animation)
nod:play()
nod.Looped = true

#

the rig isn't anchored apart from HumanoidRootPart which i saw was recommended, and the animation is under the script

sinful bronze
#

Hmmmm

#

Maybe use the animator instance?

#

So instead of humanoid:LoadAnimation you use
humanoid:WaitForChild(“Animator”):LoadAnimation(animation)

lost stormBOT
#

studio** You are now Level 2! **studio