Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is debounce and how do I use it?

What is debounce and how do I use it?

1 answer

✓ Accepted answer

Debounce can be used to stop a script running multiple times really quickly, possibly preventing lag. Something such as a 'Touched' event can trigger multiple times with all the different body parts of a human, so using a debounce on a touched event gives u the opportunity to add a Wait() to make it happen less frequently.

This discussion is preserved as it was. New answers, comments, and votes are closed.