I have a simple animation for an NPC. There's a script in the character with and animation inside. The AnimationID of it are the numbers that come up from the animations tab on the website link.
The script goes like this:
local anim = script:WaitForChild('Animation')
local hu = script.Parent:WaitForChild("Humanoid")
local dance = hu:LoadAnimation(anim)
wait(1)
dance:Play()
But for some reason it doesn't do anything. When I put in a print after the Play()
eg:
wait(1)
dance:Play()
print('Played')
It DOES print 'Played' although I can't see it animating.
Is there a different ID I need to use for the animation? I know for gamepasses there is a different Data-Asset-ID, so is there something similar for animations too?
Please help.

1 comment
Nothing is working... I've even tried using a different animation