GetCurrentScript
This function was added in DSL 8
Description
Returns the current script.
function GetCurrentScript() --[[ ... ]] end
Parameters
None.
Return Values
script:userdata|script- The script object.userdataif checked withtype(script),scriptif checked withtype2(script).
Example
local script = GetCurrentScript()
print(script, GetScriptCollection(script))