Most commonly used to find user-script functions and look inside them. For example, getconstants only works on Luau closures:
for _, fn in ipairs(getgc()) do if type(fn) == "function" then if islclosure(fn) then -- it's a LocalScript's/ModuleScript's Luau function! for i, k in ipairs(getconstants(fn)) do print(`constant {i}: {tostring(k)}`) end else -- it's an internal roblox's engine C function, pass end endend