Scripts
These functions provide advanced capabilities for interacting with the environment.
getgc([include_tables: boolean])
Retrieves a table of all Lua objects in the garbage collector.
include_tables
: (Optional) If true, includes tables and userdata in the result.
Returns: A table containing all garbage collector objects.
getgenv()
Retrieves the global environment of the exploit's Lua state.
Returns: The global environment table.
getrenv()
Retrieves the global environment of the Roblox Lua state.
Returns: The Roblox global environment table.
getscriptbytecode(script: Instance)
dumpstring(script: Instance)
Retrieves the bytecode of a Roblox script.
script
: A Roblox Script, LocalScript, or ModuleScript instance.
Returns: The script's bytecode as a string, or an error message if not available.
getscriptclosure(script: Instance)
getscriptfunction(script: Instance)
Retrieves the closure (function) of a Roblox script.
script
: A Roblox Script, LocalScript, or ModuleScript instance.
Returns: The script's closure as a function, or nil if not available.
getscripthash(script: Instance)
Generates a hash of the script's bytecode.
script
: A Roblox Script, LocalScript, or ModuleScript instance.
Returns: A SHA-384 hash of the script's bytecode, or nil if not available.
gettenv(thread: thread)
Retrieves the environment of a specified thread.
thread
: A Lua thread (coroutine).
Returns: The environment table of the specified thread.
getscriptfromthread(thread: thread)
Retrieves the Roblox script associated with a thread.
thread
: A Lua thread (coroutine).
Returns: The Roblox Script instance associated with the thread, or nil if not found.
getthreadidentity()
getidentity()
getthreadcontext()
Gets the current thread's security context level.
Returns: An integer representing the current thread's security context level.
setthreadidentity(identity: number)
setidentity(identity: number)
setthreadcontext(identity: number)
Sets the current thread's security context level.
identity
: An integer representing the desired security context level.
Returns: The previous security context level.
getallthreads()
Retrieves all Lua threads in the current state.
Returns: A table containing all Lua threads.
getsenv(script: Instance)
Retrieves the environment of a running Roblox script.
script
: A Script, LocalScript, or ModuleScript instance.
Returns: The environment table of the specified script if it's running, otherwise throws an error.