I made a function in a local script that plays animations along with a debounce so that you cannot play the same animation within a second of the animation playing. Here is the Local Script function:
local function PlayAttackAnimation(AnimationTrack)
local Debounce
if Debounce == true then return end
AnimationTrack.Looped = false
AnimationTrack:Play()
Debounce = true
wait(1)
Debounce = false
end
What's happening is that the Debounce is not changing at all. Any solutions?

1 comment
Thanks!!!