Scripts
Script instances, modules, bytecode, and decompilation.
13 functions
What the icons meandecompileAsynchronousTranslate 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.
disassembleAsynchronousRender Luau instructions for a function, bytecode string, or script Instance. This is a convenient wrapper around decompile with disassembly mode selected.
getcallingscriptSynchronousFind 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.
getloadedmodulesSynchronousList ModuleScript Instances whose modules have been loaded in the current runtime. Use it when diagnosing which modules are already in use.
getmodulesSynchronousList ModuleScript Instances known to the runtime, including ones that may not have executed. Use it to locate modules before checking their load state.
getrunningscriptsSynchronousList script Instances associated with active execution. Use it when a general getscripts snapshot includes scripts that have not started or are no longer running.
getscriptbytecodeSynchronousRead the stored Luau bytecode of a script Instance. Use it for offline inspection or as input to decompile when the bytecode is available.
getscriptclosureSynchronousCreate 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.
getscriptfromthreadSynchronousFind the script Instance associated with a coroutine. Use it when you have a thread reference and need its script origin.
getscripthashSynchronousGet a digest of a script’s stored bytecode. It is useful for noticing that the bytecode changed without printing the binary content.
getscriptsSynchronousList known LocalScript, Script, and ModuleScript objects. Use it to inspect which script Instances are present without walking every descendant yourself.
getscriptthreadSynchronousSearch for a thread associated with a script Instance. Use it when you already know the script and need one matching active coroutine.
saveinstanceAsynchronousRun 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.