I’m trying to animate the head of my NPC to move and nod. The animation was done on an R15 Rig and the NPC that I’m trying to perform the animation is also an R15 rig.
This is the code that I am using:
local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local dance = humanoid:LoadAnimation(animation)
dance.Looped = true
dance:Play()
Please note that all the body parts are unanchored
So what’s the whole point of having the animation feature on roblox then? It’s kinda dumb if this is the only way if animations don’t even work at all.
maybe try loading the track from the animator. Im not sure tho
local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local animator = humanoid:WaitForChild('Animator')
local dance = animator:LoadAnimation(animation)
dance.Looped = true
dance:Play()