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

How make a script to check if another script has been deleted?

Asked by 6 years ago

How to check if a script is deleted?

1 answer

Log in to vote
0
Answered by
Aimarekin 345 Moderation Voter
6 years ago
Edited 6 years ago
local targetscript = game -- Insert here your script address.
repeat
wait()
until targetscript == nil
-- Your code here.

First set the variable "targetscript" to your script. Once you have done that, the script will make a bucle doing nothing until the variable is nil (Which means it no longer exists).

Later, replace the "Your code here" with the code you want to execute. Hope it was useful! :3

Ad

Answer this question