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

Im trying to make the script disable after 28 seconds why isnt this working?

Asked by 3 years ago
Edited 3 years ago

how do i fix this:

if script.Disabled = false then wait(28) script.Disabled = true end

if i can also just end the script after its job that would work too.

1 answer

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago

A script won't work if it's disabled, in your case you disabled the script itself making it unable to continue the countdown thus can't enable itself back. I'd suggest you disable that script with another script. There's also something off with your script.

Edited: After reading the title request, you want to disable the script but you are checking if the script is disabled, if you want to disable it, here.

wait(28)
script.Disabled = true
Ad

Answer this question