The LocalScript is inside a tool. It is supposed to choose a random animation and play it. The random and animations work but the cooldown i applied doesnt seem to work. Any Help? Here's what you need to see:
debounce = false
tool.Activated:Connect(function()
if debounce == false then
debounce = true
local attack1 = hum:LoadAnimation(script.Animation1)
local attack2 = hum:LoadAnimation(script.Animation2)
local chooseattack = math.random(1,3)
if chooseattack == 1 then
attack1:Play()
end
if chooseattack == 2 then
attack2:Play()
end
wait(1)
debounce = false
end
end)

2 comments
I dunno since you didn't indent correctly, man.
sorry im still learning to script so i dont really know how to indent right, are you sure you dont have a sliver of a thought, how to help me?