Animations Not Loading

Hello! I have this script (in my NPC):

local animation = script:WaitForChild("AnimationID")
local humanoid = script.Parent:WaitForChild("Humanoid")
local dance = humanoid:LoadAnimation(animation)

and when I play the game this happens:

(I made all of the animations as well)

Is AnimationID directly an animation or is it an IntValue?

it is an Animation not a value
Screen Shot 2020-06-26 at 6.43.18 AM

The first AnimationId links me to a SolidModel, is that intentional?

Oh, nevermind. Mistyped a number. Well, there seems to be nothing wrong. It might be Roblox’s own fault.

1 Like

So how would i fix this? I got some of this code from

Just a question, is this for a group game, or are you working on your own place?

Also the animations load in studio

This is for my group, why do you ask?

Chances are, you uploaded the animation to your own inventory. You need to change the place that it exports to, to your group, and then it should work after youve re-exported them to the group

Ok. Let me try that. (30 characters)