-
What do you want to achieve?
A main debounce that when i change its value in a script, it actually changes the main debounce value. -
What is the issue? Include screenshots / videos if possible!
The debounce i have, seems to make many copies that when i change it in a script, it changes only for that script. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
-
I tried making the debounce in a Module script and require it in other Scripts but it seems to make a new copy for every script i require it in.
-
Also tried to make a boolvalue and place it in Workspace or ReplicatedStorage, but still got the same issue. When i change the value in a script it doesn’t change the main value in Workspace / RS.
If its not clear enough
- if i have 2 scripts and 1 boolValue in workspace. I referenced it in both scripts. In the 1st Script i changed the value to false while it was true. I printed the boolValue in the other script [With a wait so it executes after it changes] but it prints True.