Managing scripts within scripts

LoadScript(ScriptName : string)
LoadScript("ScriptExample.js")
// this will load or reload the specified script
UnloadScript(ScriptName : string)
UnloadScript("ScriptExample.js")
// this will unload the script, if the script is active
waitForScript(ScriptName : string)
task.waitForScript("ScriptExample.js")
// this will yield the current script calling this function, until the specified script is loaded and running

Last updated