Open decompileOpen DecompilerOptionsOpen dumpstringOpen getcallingscriptOpen getloadedmodulesOpen getrunningscriptsOpen getscriptclosureOpen getscriptfromthreadOpen getscripthashOpen getscriptsOpen getscriptthreadOpen getsenv

Reference

Scripts

Read, run, dump, decompile and save the scripts a game contains.

25 functions
FunctionSummary
decompileTurns a script's bytecode back into readable Luau source.
DecompilerFormatterFormatting-settings library for decompile.
DecompilerFormatter.newCreates an independent formatter-settings table.
DecompilerOptionsSettings library for decompile.
DecompilerOptions.newCreates independent decompiler settings.
getcallingscriptget_calling_scriptReturns the script that called the function you are in.
getfunctionbytecodeReturns bytecode for a single function.
getloadedmodulesget_loaded_modulesLists the ModuleScripts that have been loaded with require.
getmenvReturns the globals table of a ModuleScript.
getmodulesLists ModuleScripts whether or not they have been required.
getrunningscriptsget_running_scriptsLists the scripts that are running right now.
getscriptbytecodegetscriptbytecodeget_script_bytecodedump_stringReturns a script's compiled bytecode.
getscriptclosuregetscriptfunctionget_script_closureget_script_functionBuilds a callable function from a script's bytecode.
getscriptfromthreadget_script_from_threadReturns the script a thread was started by.
getscripthashget_script_hashReturns the SHA-384 hash of the string getscriptbytecode returns for the script.
getscriptsget_scriptsLists every script in the client, wherever it is, including ones parented to nil.
getscriptthreadget_script_threadReturns the main thread of a running script.
getsenvget_senvReturns the globals table of a running script.
iscorescriptReports whether a script belongs to Roblox's own interface code.
isexecutorthreadis_executor_threadChecks whether a thread belongs to your scripts.
requireLoads a ModuleScript and returns its result, from your scripts.
saveinstanceSaves the game, or part of it, to a file in your workspace folder that Roblox Studio can open.
SaveInstanceOptionsTyped save-options library.
SaveInstanceOptions.newCreates typed options for a binary instance save.
saveplaceSaves the whole game through saveinstance.