Here is the code:
``CandoDMG = true Keybind = "f"
dmg = 25
local plr = game.Players.LocalPlayer local mouse = plr:GetMouse()
mouse.KeyDown:Connect(function(key) if key == Keybind then local anim = script.Parent.Humanoid:LoadAnimation(script.Animation) anim:Play() script.Parent.LeftHand.Touched:Connect(function(hit) if hit.Parent.Humanoid and CandoDMG == true then hit.Parent.Humanoid:TakeDamage(dmg) CandoDMG = false wait(1) CandoDMG = true
end
end)
end
end)```
The error im getting is: Animation "https://assetdelivery.roblox.com/v1/asset?id=5519579895&serverplaceid=0" failed to load in "Workspace.EyeDontLie.LocalScript.Animation.AnimationId": Animation failed to load I don't know what is wrong because everything else works but the animation also btw the animation's priority is action

2 comments
it would be good if you codeblock all your code, instead of just 3 ends
yep ^^^