Script Library
Returns the main function of a given script.
getscriptclosure(script: BaseScript): function
Also available as getscriptfunction
getscriptfunction