Cannot load the AnimationClipProvider Service

EDIT: I added wait() at the start of the script.

Hello, everyone. So I was trying to make a fist combat tool, and it works fine, but when I die, the punch animations break.

Link:

Error:

Cannot load the AnimationClipProvider Service.  -  Client - LocalScript:36

I’ve tried putting the animations in ReplicatedStorage and Server storage but it still doesn’t work.

Script:

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")

local HumRP = char:WaitForChild("HumanoidRootPart")

local Combo = 1
local DoingCombo = 0

local Animations = script:WaitForChild("Animations")
local RemoteEvent = script:WaitForChild("RemoteEvent")

local RS = game:GetService("ReplicatedStorage")
local TS = game:GetService("TweenService")
local UIS = game:GetService("UserInputService")

local Modules = RS:WaitForChild("Modules")
local Remotes = RS:WaitForChild("Remotes")

local runRemote = Remotes:WaitForChild("Run")
local equipRemote = Remotes:WaitForChild("Equip")

local RaycastHitbox = require(Modules:WaitForChild("RaycastHitboxV4"))

local M1Debounce = false
local isEquipped = false

local Cache = RS:WaitForChild("Cache")

local originalHitbox = Cache:WaitForChild("BLHitbox")


local M1Animations = {
	[1] = hum:LoadAnimation(Animations:WaitForChild("Attack1"));
	[2] = hum:LoadAnimation(Animations:WaitForChild("Attack2"));
	[3] = hum:LoadAnimation(Animations:WaitForChild("Attack3"));
	[4] = hum:LoadAnimation(Animations:WaitForChild("Attack4"));
}

A couple of reports on this, could be an engine bug, I noticed a few reports on Reddit as well.

However, I found this:

3 Likes

Just to add, it isn’t a bug, humanoid:LoadAnimation() has been deprecated. Deprecating LoadAnimation on Humanoid and AnimationController. Just to add (again), I was wrong about the humanoid:LoadAnimation() making it not work. I did find the solution though! How to fix the "Cannot load the AnimationClipProvider Service." error

I don’t think this matters, since you can still use humanoid:LoadAnimation()
It may be removed soon, but you can still use it and it will still work.