Whats happening to my script? ErrorCode: Cannot load the AnimationClipProvider Service

I have a long local script, for a tool in a game. But whenever the player dies this line fires an error Animator:LoadAnimation(script.Animations.Equip):Play()
With this error Code

Cannot load the AnimationClipProvider Service.  -  Client - ToolHandler:79

How would i fix this, because it ruins the whole script

1 Like

Try wrapping :LoadAnimation in a if Humanoid.Health > 0 then

1 Like

Hm i’ll try but, this animation only plays when the player is alive

Well, it looks like there’s no check to make sure the player is actually alive. Also, I suggest you load the animation once, if you load it too many times it could end up breaking.

This doesn’t really work, There seems to be something wrong with my sword. It equips the sword when the player spawns in
image
But after they die
image
this happens
image

the sword is not connecting to the player

It looks like the tool isn’t being welded to the player when they respawn. How/when do you attach the tool to the player?

It does load once. when it is equipped

I connect the sword to the player with a Motor6d when it is equipped, Require Handle is turned off
My Motor6d doesn’t appear for some reason after they die

add this script to ServerScriptService and place all of your starter pack tools inside it

game.Players.PlayerAdded:Connect(function(p)
	p.CharacterAdded:Connect(function(c)
		wait()
		for i, tool in pairs(script:GetChildren()) do
			tool:Clone().Parent = p.Backpack
		end
	end)
end)
1 Like

Looks like a Roblox bug! For some reason I can’t file the Report Bug on DevForum but sent an email via Support on the Roblox main page. I’ll update as soon as I get a response.

1 Like

Was this never solved? You might need to just get the current humanoid again as a new one is created every time you respawn.

4 Likes