Scripts
Script instances, modules, bytecode, and decompilation.
Functions
decompileTranslate Luau bytecode or a script Instance into readable source-like text. Use it to inspect code when the original source is unavailable; the output is a reconstruction, not the author’s exact file.
disassembleRender Luau instructions for a function, bytecode string, or script Instance. This is a convenient wrapper around decompile with disassembly mode selected.
getcallingscriptFind the script Instance associated with the current call, when the runtime has that context. It can help label diagnostics produced by code running on behalf of a script.
getloadedmodulesList ModuleScript Instances whose modules have been loaded in the current runtime. Use it when diagnosing which modules are already in use.
getmodulesList ModuleScript Instances known to the runtime, including ones that may not have executed. Use it to locate modules before checking their load state.
getrunningscriptsList script Instances associated with active execution. Use it when a general getscripts snapshot includes scripts that have not started or are no longer running.
getscriptbytecodeRead the stored Luau bytecode of a script Instance. Use it for offline inspection or as input to decompile when the bytecode is available.
getscriptclosureCreate or retrieve a callable closure from a script Instance’s stored code. Use it when you need a function value for inspection rather than raw bytecode text.
getscriptfromthreadFind the script Instance associated with a coroutine. Use it when you have a thread reference and need its script origin.
getscripthashGet a digest of a script’s stored bytecode. It is useful for noticing that the bytecode changed without printing the binary content.
getscriptsList known LocalScript, Script, and ModuleScript objects. Use it to inspect which script Instances are present without walking every descendant yourself.
getscriptthreadSearch for a thread associated with a script Instance. Use it when you already know the script and need one matching active coroutine.
saveinstanceRun the place-export implementation loaded by Kawaii on first use. This is the export entry point when you want a local copy of the current place or its instances.