sUNC Standard

Executor Functions

Complete reference of 79executor functions tested under the sUNC (senS' Unified Naming Convention) standard. Organized by library with signatures and descriptions.

12 Libraries79 Functionsdocs.sunc.su ↗

Closures

11 functions

Inspection, modification, and creation of Luau closures — one of the most powerful tools for hooking functions and modifying game logic.

Docs ↗
FunctionDescription
hookfunctionHook a function with another function, returning the original unhooked function.
hookmetamethodHook a specific metamethod on any Luau object with a metatable.
restorefunctionRestore a hooked function back to the very first original, even after multiple hooks.
clonefunctionCreate a new function with the exact same behaviour as the passed function.
newcclosureWrap any Luau function into a C closure.
checkcallerCheck if the current function was invoked from the executor's own thread.
iscclosureCheck whether a given function is a C closure.
islclosureCheck whether a given function is a Luau closure.
isexecutorclosureCheck whether a function is a closure of the executor (includes loadstring and getscriptclosure).
getfunctionhashGet the SHA384 hash of a function's instructions and constants.
loadstringCompile a string of Luau code and return it as a runnable function.

Debug

10 functions

Powerful tools for inspecting and modifying Luau functions at a bytecode level — constants, upvalues, stack frames, and protos.

Docs ↗
FunctionDescription
debug.getconstantGet the constant at a specific index from a Luau function's bytecode.
debug.getconstantsGet all constants used within a Luau function's bytecode.
debug.setconstantModify a constant at a specific index in a Luau function's bytecode.
debug.getupvalueGet the upvalue at a specific index from a Luau function's closure.
debug.getupvaluesGet all upvalues captured by a Luau function (external variables from surrounding scope).
debug.setupvalueReplace an upvalue at a specific index in a Luau function with a new value.
debug.getprotoGet a specific function prototype from a Luau function by index.
debug.getprotosGet all function prototypes defined within a Luau function.
debug.getstackRetrieve values from the stack at a specific call level.
debug.setstackReplace a value in a specified stack frame.

Filesystem

11 functions

Access to the executor's virtual file system — reading, writing, creating, and deleting files and folders.

Docs ↗
FunctionDescription
readfileRetrieve the contents of a file at the specified path as a string.
writefileWrite data to a file. Overwrites if it already exists.
appendfileAppend string content to the end of a file. Creates the file if it doesn't exist.
delfileDelete the file at the specified path if it exists.
loadfileCompile Luau source code from a file and return the resulting function.
listfilesReturn all files and folders within the specified directory.
makefolderCreate a folder at the specified path if one doesn't already exist.
delfolderDelete the folder at the specified path if it exists.
isfileCheck whether a given path exists and refers to a file.
isfolderCheck whether a given path exists and refers to a folder.
getcustomassetReturn a content ID (e.g. rbxasset://) for loading audio, meshes, UI images, and other asset types.

Instances

9 functions

Direct access to and manipulation of Instance objects — listing, referencing, and firing Roblox-native interactions.

Docs ↗
FunctionDescription
getinstancesRetrieve every Instance from the registry, including those parented to nil.
getnilinstancesReturn unparented Instance objects that exist in memory but are no longer in the DataModel hierarchy.
gethuiReturn a hidden Instance container for safely storing UI elements (designed to avoid detection).
clonerefReturn a reference clone of an Instance that behaves identically but is not strictly equal (==) to it.
compareinstancesCheck if two Instances are equal.
getcallbackvalueRetrieve the assigned callback property on an Instance, such as OnInvoke.
fireclickdetectorTrigger a ClickDetector event (defaults to MouseClick).
fireproximitypromptInstantly trigger a ProximityPrompt, bypassing HoldDuration and activation distance.
firetouchinterestSimulate a physical touch event between two BasePart objects.

Signals

3 functions

Inspecting and manipulating RBXScriptSignal and RBXScriptConnection objects.

Docs ↗
FunctionDescription
getconnectionsRetrieve all Connection objects currently attached to an RBXScriptSignal.
firesignalInvoke all Luau connections connected to a given RBXScriptSignal.
replicatesignalReplicate a signal to the server with the provided arguments.

Scripts

9 functions

Inspect and interact with script objects — bytecode analysis, closure retrieval, environment access, and script simulation.

Docs ↗
FunctionDescription
getscriptsReturn all Script, LocalScript, and ModuleScript instances present.
getrunningscriptsReturn all running scripts in the caller's global state (excluding CoreScripts by default).
getloadedmodulesReturn all ModuleScript instances that have been loaded (require'd).
getcallingscriptReturn the Script/LocalScript/ModuleScript that triggered the current code execution.
getscriptfromthreadReturn the script associated with a given Luau thread.
getscriptclosureCreate and return a Luau function closure from a script's compiled bytecode.
getscriptbytecodeRetrieve the bytecode of a Script, LocalScript, or ModuleScript.
getscripthashReturn a SHA-384 hash of the raw bytecode for a given script.
getsenvReturn the global environment table of a given Script, LocalScript, or ModuleScript.

Metatable

5 functions

Advanced interaction with metatables — direct access to core metamethods and internal table behaviours.

Docs ↗
FunctionDescription
getrawmetatableReturn the raw metatable of an object, even if a __metatable field is set.
setrawmetatableForcibly set the metatable of a value, bypassing __metatable protection.
getnamecallmethodReturn the name of the method that invoked the __namecall metamethod.
isreadonlyCheck whether a table is currently set as readonly.
setreadonlySet whether a table is readonly (true) or writable (false).

Reflection

6 functions

Access hidden or non-scriptable properties of Instances and internal execution context.

Docs ↗
FunctionDescription
gethiddenpropertyRetrieve a hidden or non-scriptable property from an Instance.
sethiddenpropertyAssign a value to a hidden or non-scriptable property of an Instance.
isscriptableCheck whether a property of an Instance is scriptable.
setscriptableToggle the scriptability of a hidden or non-scriptable property on an Instance.
getthreadidentityRetrieve the thread's identity of the running Luau thread.
setthreadidentitySet the current Luau thread identity and capabilities.

Encoding

4 functions

Binary transformation operations — Base64 and LZ4 encoding, decoding, compression, and decompression.

Docs ↗
FunctionDescription
base64encodeEncode a string with Base64 encoding.
base64decodeDecode a Base64-encoded string back into its original form.
lz4compressCompress a string with the LZ4 compression algorithm.
lz4decompressDecompress a string that was encoded using LZ4 back to regular data.

Environment

5 functions

Access and inspection of the executor and Roblox environments — global tables, registry, and garbage collector.

Docs ↗
FunctionDescription
getgenvReturn the executor's global environment table, shared across all executor-made threads.
getrenvReturn the Roblox global environment used by the entire game.
getregReturn the Luau registry table used internally for threads, functions, and userdata.
getgcReturn non-dead garbage-collectable values — functions, userdatas, and optionally tables.
filtergcRetrieve specific garbage-collected values using fine-tuned filters.

Drawing

4 functions

Client-only 2D rendering primitives — creating and manipulating graphical objects on the screen.

Docs ↗
FunctionDescription
isrenderobjCheck whether a given value is a valid Drawing object.
getrenderpropertyRetrieve the value of a property from a Drawing object.
setrenderpropertyAssign a value to a property of a Drawing object.
cleardrawcacheRemove all active drawing objects created with Drawing.new.

Miscellaneous

2 functions

Utility functions that don't belong to a specific category — executor identification and HTTP requests.

Docs ↗
FunctionDescription
identifyexecutorReturn the name and version of the currently running executor.
requestSend an HTTP request with a configuration table. Yields until complete and returns a structured response.

Function data sourced from the sUNC Documentation Metadata API. sUNC evolves over time — some functions may be deprecated or added. Always refer to the official docs for the latest information.