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

Is there a way to disable a script once a certain parameter has been fufilled?

Asked by 5 years ago
Edited 5 years ago

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.

0
that's the whole point of the site, to get help on your scripts. User#24403 69 — 5y
0
Are you saying you want me to post my script? Marty999 82 — 5y
0
there is a disabled property of the script and local script theking48989987 2147 — 5y
0
Thank you very much :) Marty999 82 — 5y

Answer this question