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

Check if a script is finished executing?

Asked by 10 years ago

Is there any way to check if a script (script1) is finished executing (i.e., Can be added to debris) from another script (script2) without a modification to script1?

0
Nope. You would have to make the script1 do something like change a value somewhere and script2 be looking for that value to change constantly for it to start. Best way in my opinion. Goulstem 8144 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

You would have to add a Global Variable when Script1 is finished, you change that Variable to "finished" and then have Script2 start when that variable = finished OR you can have when Script1 is finished it will change a Variable. And if you want a script to be removed just have a wait(1) at the end of the script and then make the scripts parent Debris

Ad

Answer this question