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.userdata
if checked withtype(script)
,script
if checked withtype2(script)
.
Example
local script = GetCurrentScript()
print(script, GetScriptCollection(script))