So I tried making animation and tried to make it work using this script (Animation named Attack is inside this local script which is inside a tool)
tool = script.Parent tool.Equipped:connect(function(mouse) local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack) attack:Play() end)
and it won't seem to play the animation, I just uploaded the animation tens of minutes ago, does that have something to do with it?
Chances are your priority of the attack it too low so Roblox's animation plays over it.
Open up the editor, load into animation through exports (so import) it. Then you wanna press on Settings. There will be an option to change the animation Priority, click Priority and make sure the priority is "action". After re-export is and since the animation Id stays the same, it should work!
Since there is no real problem with the script I'm gonna improve it for you:
local tool = script.Parent -- use local variables tool.Equipped:Connect(function(mouse) -- :Connect not :connect, :connect is deprecated local attack = tool.Parent.Humanoid:LoadAnimation(script.Attack) -- script.Parent is tool so just use tool.Parent attack:Play() end)
Hoped this helped!