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