Cannot load the AnimationClipProvider Service

My bandage animation stopped working after you die, as well as giving an error. it only occurs to my bandage animation somehow, did I do something wrong?

local character = player.Character or player.CharacterAppearanceLoaded:Wait()
local hum = character:WaitForChild("Humanoid")

local equip = hum:LoadAnimation(script:WaitForChild("Equip"))
local idle = hum:LoadAnimation(script:WaitForChild("Idle"))
1 Like

Where is the script located in your game?

I’m sorry for the late reply, it’s located inside a tool (StarterPack)

local character = player.Character or player.CharacterAppearanceLoaded:Wait()

Should be changed to:

local character = player.Character or player.CharacterAdded:Wait()

If that doesn’t work, then try adding

repeat task.wait() until player.Character

the line after you define the character. I know, it seems unnecessary, but LocalScripts tend to act strange when loading the character and humanoid in the StarterPack, which is why I just set up a CharacterAdded event on the server to add the starter tools instead of using StarterPack.

It still doesn’t fix the issue somehow, I find it weird that the error only occurs in this script but not the others

Try putting task.wait(1) the line before the character is defined.

1 Like

Since the task.wait(1) worked, then your problem was that the AnimationClipProvider was loading slower than your LocalScript. You can probably decrease the task.wait(1) to a task.wait() or a task.wait(0.1) so there is no noticeable delay for the user.

2 Likes

I see, thank you for the help!

1 Like