So I am trying to make a swing animation and I've followed multiple tutorials and not a single one of them work ever and I am getting super upset. This is the code inside a tool (the tool has this local script, a handle part, and an Animation with my animation id):
script.Parent.Activated:Connect(function()
local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
animation:Play()
end)

6 comments
Do you get any errors? Do you own the animation? Does Activated actually run?
are u pre-loading the animation?
Activated actually does run, no errors, and I made the animation so I assume I own the animation. What does pre-loading the animation mean?
Make sure the animation is created with a high priority or else it may not override your character's default animations.
Try setting your animation's priority to Action. You can do this easily from roblox's animation editor.
Does the animation have a AssetId