Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Check if a script is finished executing?

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?

1 comment

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.

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.