Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Debounce for multiple scripts?

Asked by 10 years ago

Is it possible to make a debounce for multiple scripts? Or must I combine the scripts to make it work? If it is possible, please tell why. Thanks.

0
By 'why' I mean how. orderman 15 — 10y

1 answer

Log in to vote
1
Answered by
Nickoakz 231 Moderation Voter
10 years ago

Using a BoolValue, yes. You connect two scripts to a single BoolValue and you set the value to true when you don't want any script to run and back to false to allow running.

0
Personally I use and prefer global variables. Articulating 1335 — 10y
0
Yes. _G bool values also work. Nickoakz 231 — 10y
Ad

Answer this question