What I want to do is make a 3 second cool down for each time the animation plays when I left Click.
local debounce = false
script.Parent.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function()
if not debounce then
debounce = true
end
print("work!")
animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
animation:Play()
wait(3)
debounce = false
end)
end)
script.Parent.Unequipped:Connect(function()
animation:Stop()
end)
Help.
