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"))