Cannot load the AnimationClipProvider Service

I already know that there are topics made about this but they do not work for me.
What is the problem? It’s exactly what the title says.

Here is my script

local AnimationHardShoot = Instance.new("Animation")
AnimationHardShoot.AnimationId = "rbxassetid://8405201998"
local HardAnim = Player.Character.Humanoid:LoadAnimation(AnimationHardShoot)

local AnimationSoftShoot = Instance.new("Animation")
AnimationSoftShoot.AnimationId = "rbxassetid://8404181194"
local SoftAnim = Player.Character.Humanoid:LoadAnimation(AnimationSoftShoot)

The error is occurring on Line 2 or 3 of this snippet.

Help is appreciated

5 Likes

What type of error are you getting?

The error is the title. Getting the same issue as he is.

image

This has something to do with character not being fully loaded. This should not be happening and is most likely a engine bug. My current workaround for this is to add a slight delay and constant pcall check until the error is gone and then resume all actions

1 Like

I just resolved this error. When getting the player’s character, use:

local character = game.Workspace:WaitForChild(player.Name)
14 Likes

Just want to say so much for saying this, it delayed my whole game for 2 weeks and by using this I can fix a long term bug. Thank you for existing, thank you for getting a pc and having all the events in the timeline lead up to you posting this. I am giving your name out to 100 people in my Discord server just to show how amazing thing you have said.

3 Likes

Thank you so much! You literally just made my day! :smiley:

1 Like

Truly, we shall talk more, DM me on valid#1000

Sure, I sent a fr. 30charlimit

When I had this exact same problem. I had statements like
local character = player.Character or player.CharacterAdded:Wait()
to wait for character to load.
But this was not enough the problem.
So I added a
repeat task.wait()
until game:IsLoaded()
to wait till the game is loaded on client side. And it worked!

1 Like