Quick question, Is it viable to use Animation.Stopped:Wait() as a debounce? EG:
AnimationPlayer.isSwinging = true
track.Stopped:Wait()
task.wait(0.35)
AnimationPlayer.isSwinging = false
Quick question, Is it viable to use Animation.Stopped:Wait() as a debounce? EG:
AnimationPlayer.isSwinging = true
track.Stopped:Wait()
task.wait(0.35)
AnimationPlayer.isSwinging = false
It seems like Animation.Stopped:Wait() is used to wait until the animation stops playing. So if you need to wait for an animation to stop playing, then I’d say this is a good way of using it as a debounce.
As @Unofficial_Giftbox mentioned it depends whether you want the animation track to yield until its finished playing then its good variation of a debounce.
Why not, the only problem is if the animation isn’t loaded
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.