local CanAttack = true
script.Parent.Activated:connect(function()
local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)
if CanAttack == true then
attack:Play()
CanAttack = false
wait(.5)
attack:Stop()
CanAttack = true
script.Parent.CanDamage.Value = true
wait(0)
end
end)
(Error) (This error is viewed in ROBLOX Dev Console) 15:40:59 --Animation "https://www.roblox.com//asset/?id=794186172&serverplaceid=528273530" failed to load in "Workspace.Unkn0wn_Species.DoubleSidedAxe.LocalScript.Attack.AnimationId":Animation failed to load

4 comments
I also got this other Error from Studio Output, when I ran the script through Command bar. sc:2: attempt to index global 'script' (a nil value)
This is really bugging me, i've been trying to fix it for 2 days now.
I have the same problem :/
@SSSpencer413 I tried answering you on the chat but you were offline. Make sure your animation is created by you, or is in the group creations. The Anim, must be own by you or the group depending on the game you are making either it be a game made by you, or a game in a group.