Aliases
getscriptfunction
Arguments
Instance
required
The script Instance to inspect.
Returns
function?
The loaded script closure, or nil on a read/load failure.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Loads available script bytecode into a new closure without executing it.
getscriptclosure(script: Instance): function?
getscriptfunctionfor _, script in ipairs(getscripts()) do
local ok, fn = pcall(getscriptclosure, script)
if ok and fn then print(script.Name, type(fn)) break end
end
