I'm trying to make a swing animation for a sword, but the animation isn't working on the hand that the tool is equipped on.
Local Script:
script.Parent.Equipped:Connect(function()
local Tool = script.Parent
local Animation = Tool.Animation
local Character = Tool.Parent
local Humanoid = Character.Humanoid
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Button1Down:Connect(function()
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play()
end)
end)

3 comments
This didn't fix my problem. My problem was that the animation wouldn't play on the hand that I had the tool equipped on. I also tried your solution and it didn't work.
What priority is the animation under?
It was core, so I just changed it to action and it work. Thanks!