script.Parent.Equipped:Connect(function(mouse)
local debounce = false
mouse.Button1Down:Connect(function()
if debounce == false then
local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
animation:Play()
debounce = true
end
end)
wait(1)
debounce = false
end)
The script is a local script and is the child of the tool. When I run the game and left-click the mouse, nothing happens. Please help!!

1 comment
The part where you are changing the debounce should be inside of your Button1Down function, not outside of it.