Hello, I am making a ranged weapons script and when I die on the roblox studio test, a new error pop up in, it says “Cannot load the AnimationClipProvider Service.” and that weapon isn’t even equipped so how do I fix it?
Script
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local tool = script.Parent
local animations = tool:WaitForChild(“Animations”)
local handle = tool:WaitForChild(“Handle”)
local animLoad = > character:WaitForChild(“Humanoid”):LoadAnimation(animations:WaitForChild(“Slash1”))
local debounce = false
tool.Activated:Connect(function()
if not debounce then
debounce = true
tool.Enabled = false
animLoad:Play()
handle.SwordSlash:Play()
ReplicatedStorage.RangedMiscEvent:FireServer(script.Parent.Damage.Value, BrickColor.new("Dark orange"), true, handle.CFrame)
wait(2)
tool.Enabled = true
debounce = false
end
end)
tool.Equipped:Connect(function()
handle.Unsheath:Play()
end)