The localscript:
local Tool = script.Parent
local Player = game:GetService("Players").LocalPlayer
local Animation = Tool.Animation
local canSwing = true
local Debounce = 1
script.Parent.Activated:Connect(function()
local swingAnimation = Player.Character.Humanoid:LoadAnimation(Animation)
if canSwing then
canSwing = false
swingAnimation:Play()
wait(Debounce)
canSwing = true
end
end)
This local script is in the tool.
Just incase you wanted to try the animation to test it and see if it works, the animation id:
5360112825

6 comments
does it prints anything on console?
w A t ? if your wondering it doesnt print anything on output, no errors
w A t ? if your wondering it doesnt print anything on output, no errors
Why did you put wait{} instead of wait()
is it your animation?
bc is it isnt you cant use it, it has to be made by you