getscriptfunction.
Parameters
Instance
required
A
LocalScript, ModuleScript, or Script with bytecode.Returns
function
A new closure compiled from the script.
Example
Errors
Related
getscriptbytecode: read the raw bytecode instead.