this will work fine
but the wait function will stop the entire work of the script
True, you could wrap that in a coroutine.
1 Like
I just made a module for such functions
This is the best method for debounce in my opinion!
sorry to bump this up, but it ain’t really over complicating much, the os time is there so there isn’t multiple threads running at once (well try to reduce the amount of threads running at once) and plus since there’s no wait it won’t halt your script and it should run normally