Cannot load the AnimationClipProvider Service

The error Cannot load the AnimationClipProvider Service. showed up. I believe i did everything correctly. I went on the forum and see a few topic about it and people were saying that this was a bug but it was from January so I’m not sure if this is fixed or not.

Code:

local tool = script.Parent
local plr = script:FindFirstAncestorWhichIsA("Player") 
local char = plr.Character
local hmd = char:FindFirstChildOfClass("Humanoid")
local hmdrootpart = char:FindFirstChild("HumanoidRootPart")
local animator = hmd:FindFirstChildOfClass("Animator")

local HitboxedFolder = game.ReplicatedStorage:FindFirstChild("Hitboxes")
local hitbox = HitboxedFolder:FindFirstChild("m1Hitbox")

local attack = 1
local enableAttack = true

-- Animation
local slash1Anim = animator:LoadAnimation(script.Animations:FindFirstChild("slash1")) -- Cannot load the AnimationClipProvider Service.
local slash2Anim = animator:LoadAnimation(script.Animations:FindFirstChild("slash2"))
local slash3Anim = animator:LoadAnimation(script.Animations:FindFirstChild("slash3"))

its a engine bug it also happens to me

Oof, it has been three month, gotta wait ig

guess so or you can maybe find some other way

Huh, this happens to me, but after I put a wait() or something, it just magically fixes itself. Should probably wait for the humanoid to load or somethin’. Don’t know how to fix it myself though without a wait. Someone more professional could help.

This happens if the humanoid is not loaded fully yet or the character isnt in workspace.

2 Likes