AnimationClipProvider Service Error

Hello

I am having this reoccurring bug with animations that outputs the “Cannot load the AnimationClipProvier Service” error.

I have been researching information about this for about 3 hours, tried multiple different attempts to resolve my issue, and every other post about this with “fixes” results in the same. exact. error. It only works when they first get the tool, but if they die and respawn it breaks.

I am in desperate need of help.

Here’s the code that I currently have that does not work.

local Character = Player.Character or Player.CharacterAdded:Wait()
repeat task.wait() until Character:FindFirstChild("Humanoid")
local Humanoid = Character:WaitForChild("Humanoid")
local Animator = Humanoid:WaitForChild("Animator")

for i,v in pairs(Animations:GetChildren()) do
    if v:IsA("Animation") then
        local Anim = Humanoid:LoadAnimation(v) -- error starts here
        Anims[v.Name] = Anim
    end
end
1 Like

bumping thisssss because its getting covered.

Where have you placed this script and is it a client script or a server script?

This is a local script under the tool.

Change “Humanoid:LoadAnimation(v)” To “Animator:LoadAnimation(v)”

Ah, okay, I’ve outputted the debug ids of these instances and the script gets the humanoid and the animator from the past life every time. The script is running faster than the character can finish with loading.

Screenshot (11891)
You could just do local Character = Player.CharacterAdded:Wait() instead of doing local Character = Player.Character or Player.CharacterAdded:Wait() since the error completely disappears when I do that.

2 Likes

Oh my god, you are actually a lifesaver! This is finally the solution to this god-forsaken problem.

God bless you lol.

1 Like