21:41:29.341 - Invalid animation id '<error: unknown AssetId protocol>':

i am trying to make a character load an animation and this pops up…
what does it mean?

5 Likes

What is the AnimationId you’re using? It sounds like the protocol (whatever://) is invalid. It should be rbxassetid:// or https://.

15 Likes

I got the same problem, It’s weird, I wish I knew a solution.

1 Like

Please provide either the line of code that is resulting in the error, or the script it’s self, so maybe I can establish a solution.

Edit: also mega bump lol.

fixed it, found out humanoid was nil

If you’re doing this through a code, therefore creating a new animation instance, problem here might be that youre setting AnimationID as a number only. You can’t just do this;

local Animation = Instance.new("Animation")
Animation.AnimationId = animIDhere

because if you’ll do it through code, roblox doesn’t autofill the “rbxassetid://” behind your animation ID.

So, instead of that you should do something like this;

local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://"..animID

Hope this helped at least a little bit. Hmu if you would need any additional help

4 Likes