I know my scripting is bad, please don’t make fun of it.
How would I make this actually work?
I know my scripting is bad, please don’t make fun of it.
How would I make this actually work?
In the third line you declarated the value, are you sure that is the Value number and not the Value instance?
If it is a instance, then just user Value.Value
Doing this only References the value of the Value Instance, and not the Instance Itself, so in order to change the Value you do this:
local value = game.ReplicatedStorage.WindowChecked
Which you are now Referencing the Instance itself, so now with your current code, you can either do the following:
value.Value = value.Value + 1 -- value is equal to current value plus 1
value.Value += 1 -- simplified (value plus 1)
I also figured out I was extra dumb and set the debounce to true when it needs to be false for the script to play
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.