I am making a script that essentially does this:

Player clicks button While the player is in range of the button and still 'working' the value "progress" increases by 1 every second

This is what I am stuck on: When progress is >= 100 the player can no longer 'work' the button

My question is, how could you disable a script/part of the script vital to progress increases? i.e. making a function no longer run/disabling the whole script. I am happy to post my script(s) in an edit if someone requests.

4 comments

0

that's the whole point of the site, to get help on your scripts.

0

Are you saying you want me to post my script?

0

there is a disabled property of the script and local script

0

Thank you very much :)