It's a serverscript inside a tool (in starterpack). The animation fails to load in.
ERROR: 'Animation ... failed to load in ...' I added dots to places in the game that don't actually matter. Animation works in studio and local servers
local tool = script.Parent
local handle = script.Parent:WaitForChild('Handle')
local Debounce = true
local slash = script.Parent:WaitForChild('Slash')
local click = false
local inAttack = false
AniDebounce = true
AxeDebounce = true
tool.Activated:connect(function()
local plr = game.Players:GetPlayerFromCharacter(tool.Parent)
local char = plr.Character
if char then
local hum = char:WaitForChild('Humanoid')
local slashTrack = hum:LoadAnimation(slash)
wait(0.1)
if AniDebounce then
slashTrack:Play()
AniDebounce = false
end
end
inAttack = true
if Debounce then
Debounce = false
click = true
print('tool activated')
local plr = game.Players:GetPlayerFromCharacter(tool.Parent)
if plr then
handle.Touched:connect(function(hit)
if inAttack then
print('animation')
-- Animation
local char = plr.Character
if char then
local hum = char:WaitForChild('Humanoid')
local slashTrack = hum:LoadAnimation(slash)
wait(0.1)
if AniDebounce then
slashTrack:Play()
AniDebounce = false
end
end
-- Tree damage
if hit.Parent and hit.Parent.Name ~= plr.Name and hit.Parent:FindFirstChild('Wood') and AxeDebounce then
AxeDebounce = false
local HP = hit.Parent.HP
HP.Value = HP.Value - 30
if HP.Value <= 30 then
-- Earn wood
end
end
else
print(Debounce)
print(click)
end
end)
end
wait(0.5)
click = false
inAttack = false
wait(5)
Debounce = true
end
end)
while wait() do
if AniDebounce == false then
wait(2)
AniDebounce = true
AxeDebounce = true
end
end

5 comments
First you are connecting a new Touched event per Activated. This is a tool and should load / play the animation in a local script.
still the same error
Yeah, I'm calling one but it doesn't get activated, I'll improve that though, the animation is the biggest problem though
Check that is loads correctly using the def character. I have had cases when it does not upload correctly causing this issue. Also is the rig type the same ie R16?
It's R15, I don't believe R16 exists. What is the def character?