# Executor API

> Every function Rove adds to Luau, grouped and searchable, with signatures and the limits that apply.
> Rove documentation: https://docs.rove.wtf/executor

Scripts you run in Rove get the standard Luau and Roblox globals plus the functions below. Names follow the common UNC conventions, so existing scripts work; many have several aliases, all listed. Everything here was read from a live Rove client, and the signatures and limits from its source.

225 executor functions and aliases. Signatures and limits are taken from Rove's source; examples ran in a real Rove client and their recorded output follows each one.

### Environment & identity

Where your code runs, who it runs as, and what it can see.

#### `getgenv`

The executor's shared global table. Values set here are visible to every script you run.

```lua
getgenv() -> table
```

- Reads and writes go through to the VM's globals.

Example:

```lua
getgenv().docsCounter = (getgenv().docsCounter or 0) + 1
print("times this ran in this client:", docsCounter)
print("it's an ordinary global to every later script")
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
times this ran in this client:	1
it's an ordinary global to every later script
```

#### `getrenv`

The game's own global environment, as Roblox scripts see it.

```lua
getrenv() -> table
```

- A copy of the engine globals made at install time, with its own _G. game and workspace stay live.

Example:

```lua
local env = getrenv()
print("the game's print is the one we call:", env.print == print)
print("executor functions aren't in it:", env.hookfunction == nil)
print("it has its own _G:", env._G ~= _G)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
the game's print is the one we call:	true
executor functions aren't in it:	true
it has its own _G:	true
```

#### `getsenv`

The environment of a running LocalScript or ModuleScript.

```lua
getsenv(script: Instance) -> table?
```

- nil when the script runs in an Actor VM.
- Errors "script has no instantiated environment" if it never ran.

#### `gettenv`

Aliases: `getthreadenv`

The environment table of a thread.

#### `identifyexecutor`

Aliases: `getexecutorname`

Returns "rove" and "1.00".

```lua
identifyexecutor() -> ("rove", "1.00")
```

Example:

```lua
local name, version = identifyexecutor()
print(name, version)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
rove	1.00
```

#### `getthreadidentity`

Aliases: `getidentity`, `getthreadcontext`

The security identity of the current thread.

```lua
getthreadidentity() -> number
```

- Default 8.

Example:

```lua
print("identity", getthreadidentity())
setthreadidentity(2)
print("after setthreadidentity(2):", getthreadidentity())
setthreadidentity(8)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
identity	8
after setthreadidentity(2):	2
```

#### `setthreadidentity`

Aliases: `setidentity`, `setthreadcontext`

Changes the current thread's identity, which decides which members it may touch.

```lua
setthreadidentity(identity: number)
```

#### `checkcaller`

True when the code that called you is executor code rather than a game script.

```lua
checkcaller() -> boolean
```

- False only when the current task belongs to a game script.

Example:

```lua
print("called from executor code:", checkcaller())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
called from executor code:	true
```

#### `getcallingscript`

Aliases: `getcaller`

The script object behind the current thread, if any.

```lua
getcallingscript() -> Instance?
```

#### `isparallel`

True while a task is running desynchronized (parallel Luau).

#### `getfflag`

Aliases: `setfflag`

Read and write engine fast flags. Bounded to 512 entries.

```lua
getfflag(name) -> value? · setfflag(name, value) -> true
```

- Prefixes like FFlag, DFInt and FString are stripped from names.
- Up to 512 distinct flags; strings up to 4,096 bytes.
- Stored per VM; the engine doesn't read them back.

Example:

```lua
setfflag("DocsExampleFlag", "true")
print(getfflag("DocsExampleFlag"))
print("prefixes are ignored:", getfflag("FFlagDocsExampleFlag"))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
true
prefixes are ignored:	true
```

#### `gethui`

A hidden container for your UI that game scripts don't enumerate.

```lua
gethui() -> Instance
```

- The session's CoreGui.

Example:

```lua
local ui = gethui()
print(ui.ClassName, ui:GetFullName())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
CoreGui	CoreGui
```

#### `getfpscap`

Aliases: `setfpscap`

The client's frame-rate cap.

```lua
setfpscap(fps: number) · getfpscap() -> number
```

- 0 is uncapped; clamped to 10,000. Reports 60 until you set one.

Example:

```lua
print("cap:", getfpscap())
setfpscap(144)
print("after setfpscap(144):", getfpscap())
setfpscap(60)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
cap:	60
after setfpscap(144):	144
```

#### `isrbxactive`

Aliases: `isgameactive`, `iswindowactive`

Whether the client window has focus (true unless told otherwise).

```lua
isrbxactive() -> boolean
```

- True unless a Focus input event says otherwise.

#### `setclipboard`

Aliases: `toclipboard`, `setrbxclipboard`, `getclipboard`

The session clipboard.

```lua
setclipboard(text: string)
```

- Up to 128 KiB.

#### `messagebox`

No dialog in a headless client: the text goes to the console and it returns 1.

```lua
messagebox(text, caption?, flags?) -> 1
```

- No dialog: writes "[caption] text" to the console.

Example:

```lua
print("returned", messagebox("Saved.", "Rove", 0))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
[Rove] Saved.
returned	1
```

### Closures & hooking

Load code, wrap functions and replace them in place.

#### `loadstring`

Compiles a Luau source string into a function, with the official Luau compiler.

```lua
loadstring(source: string, chunkname = "=(loadstring)") -> (function?, error?)
```

- Inherits the caller's environment.
- Source up to 100 MiB.

Example:

```lua
local add = loadstring("local a, b = ... return a + b")
print(add(2, 3))

local nothing, message = loadstring("return +")
print(nothing, message)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
5
nil	syntax error: 1: Expected identifier when parsing expression, got '+'
```

#### `loadfile`

Aliases: `dofile`

Load or run a file from the workspace folder.

```lua
loadfile(path) -> (function?, error?) · dofile(path, ...) -> ...
```

#### `hookfunction`

Aliases: `replaceclosure`

Replaces a function everywhere it's referenced and returns a callable copy of the original.

```lua
hookfunction(target: function, hook: function) -> function
```

- Modifies target in place: C targets are re-routed; Luau targets either take the hook's body or forward to it.
- Returns a callable copy of the original.
- Errors "inactive prototypes cannot be hooked" for getprotos results.

Example:

```lua
local function damage(amount)
  return amount
end

local original
original = hookfunction(damage, function(amount)
  return original(amount) * 2
end)

print("damage(10) is now", damage(10))
print("the original still gives", original(10))
restorefunction(damage)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
damage(10) is now	20
the original still gives	10
```

#### `restorefunction`

Undoes a hookfunction.

```lua
restorefunction(f: function)
```

- Errors "function has not been hooked".

Example:

```lua
local function mood()
  return "original"
end

hookfunction(mood, function()
  return "hooked"
end)
print(mood())

restorefunction(mood)
print(mood())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
hooked
original
```

#### `hookmetamethod`

Hooks a metamethod (__index, __namecall, __newindex …) on an object's metatable.

```lua
hookmetamethod(object, name: string, hook: function) -> function?
```

- Lifts read-only on the metatable for the change and restores it.
- For userdata __namecall with no field yet, returns a generated forwarder.

Example:

```lua
local part = Instance.new("Part")
part.Name = "Secret"

local original
original = hookmetamethod(game, "__index", function(self, key)
  if self == part and key == "Name" then
    return "nothing to see"
  end
  return original(self, key)
end)

print(part.Name)
hookmetamethod(game, "__index", original)
print(part.Name)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
nothing to see
Secret
```

#### `newcclosure`

Wraps a Luau function so it reports as a C closure.

```lua
newcclosure(f: function, debugName = "newcclosure") -> function
```

- C functions are returned unchanged. The wrapper can yield.

Example:

```lua
local function plain()
  return "still works"
end

local wrapped = newcclosure(plain)
print(iscclosure(plain), iscclosure(wrapped), wrapped())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
false	true	still works
```

#### `clonefunction`

Aliases: `clonefunc`

A new function with the same behaviour and upvalues.

```lua
clonefunction(f: function) -> function
```

- Luau functions keep their environment and executor mark.

Example:

```lua
local function original()
  return "same behaviour"
end

local copy = clonefunction(original)
print("a different function:", copy ~= original)
print(copy())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
a different function:	true
same behaviour
```

#### `iscclosure`

True for C functions (including newcclosure wrappers).

Example:

```lua
print(iscclosure(print), iscclosure(function() end))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
true	false
```

#### `islclosure`

True for Luau functions.

Example:

```lua
print(islclosure(print), islclosure(function() end))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
false	true
```

#### `isexecutorclosure`

Aliases: `checkclosure`, `isourclosure`

True when the function came from the executor rather than the game.

Example:

```lua
print("a function this script made:", isexecutorclosure(function() end))
print("the game's print:", isexecutorclosure(print))
print("an executor function:", isexecutorclosure(getgenv))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
a function this script made:	true
the game's print:	false
an executor function:	true
```

#### `isnewcclosure`

True for functions made by newcclosure.

#### `getscriptclosure`

Aliases: `getscriptfunction`

The main function of a script, without running it.

```lua
getscriptclosure(script) -> function?
```

- A fresh clone each call; nil when the code isn't available.

### Metatables & namecalls

Reach past __metatable locks and read the method being called.

#### `getrawmetatable`

An object's metatable, ignoring __metatable.

```lua
getrawmetatable(value) -> table? · setrawmetatable(value, mt?) -> value
```

Example:

```lua
local mt = getrawmetatable(game)
print(type(mt), "with __index:", mt.__index ~= nil)
print("getmetatable would have given:", getmetatable(game))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
table	with __index:	true
getmetatable would have given:	false
```

#### `setrawmetatable`

Sets a metatable, ignoring __metatable.

#### `getnamecallmethod`

Aliases: `get_namecall_method`, `getnamecall`, `get_namecall`

Inside a __namecall hook: the method name being called.

```lua
getnamecallmethod() -> string?
```

- nil outside a __namecall.

Example:

```lua
local original
original = hookmetamethod(game, "__namecall", function(self, ...)
  if self == workspace and getnamecallmethod() == "GetChildren" then
    print("caught workspace:" .. getnamecallmethod() .. "()")
  end
  return original(self, ...)
end)

workspace:GetChildren()
hookmetamethod(game, "__namecall", original)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
caught workspace:GetChildren()
```

#### `setreadonly`

Freezes or unfreezes a table.

```lua
setreadonly(t: table, readonly: boolean)
```

Example:

```lua
local settings = table.freeze({ volume = 5 })
print("frozen:", isreadonly(settings))

setreadonly(settings, false)
settings.volume = 11
print("volume is now", settings.volume)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
frozen:	true
volume is now	11
```

#### `isreadonly`

Whether a table is frozen.

#### `makereadonly`

Aliases: `make_readonly`

Freezes a table.

#### `makewriteable`

Aliases: `make_writeable`

Unfreezes a table.

### Functions, stacks & the GC

Look inside functions and threads. Also available on the debug library.

#### `getconstants`

Aliases: `getconstant`

Constants of a Luau function (numbers, strings, imports).

```lua
getconstants(f | level) -> {any}
```

- Import-cache slots come back as nil holes.

Example:

```lua
local function greet(name)
  return "hello, " .. name .. "!"
end

for index, constant in getconstants(greet) do
  print(index, constant)
end
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
1	hello,
2	!
```

#### `setconstant`

Replaces one constant.

Example:

```lua
local function greet()
  return "hello"
end

setconstant(greet, 1, "goodbye")
print(greet())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
goodbye
```

#### `getupvalues`

Aliases: `getupvalue`, `getupvals`, `getupval`

A function's upvalues.

```lua
getupvalues(f) -> {any} · getupvalue(f, i)
```

Example:

```lua
local lives = 3
local function hurt()
  lives -= 1
  return lives
end

hurt()
print("upvalue 1 is", getupvalue(hurt, 1))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
upvalue 1 is	2
```

#### `setupvalue`

Aliases: `setupvalues`, `setupval`, `setupvals`

Replaces upvalues.

Example:

```lua
local lives = 3
local function hurt()
  lives -= 1
  return lives
end

setupvalue(hurt, 1, 100)
print("after setupvalue:", hurt())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
after setupvalue:	99
```

#### `getprotos`

Aliases: `getproto`

Functions defined inside a function (prototypes), optionally as live closures.

```lua
getprotos(f) -> {function} · getproto(f, i, active?)
```

- getprotos returns inactive closures; calling one errors "inactive prototype cannot be called". getproto(f, i, true) gives live ones.

Example:

```lua
local function outer()
  local function inner()
    return "from the inner function"
  end
  return inner
end

print(#getprotos(outer), "function defined inside outer")
print(getproto(outer, 1, true)[1]())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
1	function defined inside outer
from the inner function
```

#### `getstack`

Aliases: `setstack`

Read or write locals at a stack level.

```lua
getstack(level >= 1, index?) -> any
```

- Every raw register, temporaries included. Needs an interpreted (non-native) frame.

#### `getinfo`

Aliases: `getfuncinfo`, `getfunctioninfo`

Source, line, name, arity and upvalue counts for a function or level.

```lua
getinfo(f | level) -> table?
```

- Fields: what, source, short_src, name, linedefined, lastlinedefined, currentline, nups, numparams, is_vararg, func.
- One argument only (no option string).

Example:

```lua
local function example(a, b, ...) end

local info = getinfo(example)
print(info.name, info.what)
print("parameters:", info.numparams, " vararg:", info.is_vararg, " defined on line", info.linedefined)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
example	Lua
parameters:	2	 vararg:	1	 defined on line	1
```

#### `getfunctionhash`

A stable hash of a function's bytecode.

```lua
getfunctionhash(f) -> string
```

- 96 hex characters (SHA-384).

Example:

```lua
local a = function() return 1 end
local b = function() return 1 end
local c = function() return 2 end

print(#getfunctionhash(a), "hex characters")
print("same code, same hash:", getfunctionhash(a) == getfunctionhash(b))
print("different code:", getfunctionhash(a) == getfunctionhash(c))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
96	hex characters
same code, same hash:	true
different code:	false
```

#### `getcallstack`

The current call stack.

#### `isvalidlevel`

Aliases: `validlevel`

Whether a stack level exists.

#### `getreg`

Aliases: `getregistry`

The Lua registry.

#### `getgc`

Every function (and optionally table) the garbage collector can reach.

```lua
getgc(includeTables?: boolean) -> {any}
```

- Runs a full collection first. Functions and userdata always; tables only when asked. Executor closures are included.

Example:

```lua
local marker = function() return "find me" end

local found = 0
for _, value in getgc() do
  if value == marker then
    found += 1
  end
end
print("found our own function in the heap:", found == 1)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
found our own function in the heap:	true
```

#### `filtergc`

getgc with filters (by name, constants, upvalues, hash, keys …).

```lua
filtergc(kind: "function" | "table", options?, returnOne?: boolean)
```

- Function options: Name (exact), Constants, Upvalues (all must be present), Hash (from getfunctionhash), IgnoreExecutor (default true).
- Table options: Keys, Values, KeyValuePairs (raw equality), Metatable (identity).
- returnOne gives the first match or nil.

Example:

```lua
local function docsNeedle()
  return "needle-constant"
end

local hit = filtergc("function", { Name = "docsNeedle", IgnoreExecutor = false }, true)
print("found by name:", hit == docsNeedle)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
found by name:	true
```

#### `getallthreads`

Aliases: `getthreads`

Every live coroutine.

#### `getcurrentthread`

The running coroutine.

#### `getscriptfromthread`

The script a thread belongs to.

#### `dumpstring`

Bytecode of a source string.

```lua
dumpstring(source: string | script) -> string
```

- Source strings up to 128 KiB, compiled at debug level 2.

Example:

```lua
local bytecode = dumpstring("return 1 + 1")
print(#bytecode, "bytes of Luau bytecode, version", string.byte(bytecode, 1))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
41	bytes of Luau bytecode, version	13
```

### Scripts

The game's scripts, their bytecode and their environments.

#### `getscripts`

Every script instance in the game.

```lua
getscripts() -> {Instance}
```

- Script, LocalScript and ModuleScript, excluding CoreGui and CorePackages.

Example:

```lua
print(#getscripts(), "scripts in this world")
print(#getrunningscripts(), "running,", #getloadedmodules(), "modules required")
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
0	scripts in this world
0	running,	0	modules required
```

#### `getrunningscripts`

Scripts that are currently running.

```lua
getrunningscripts() -> {Instance}
```

- Active scripts, modules being loaded, and script-owned threads.

#### `getloadedmodules`

ModuleScripts that have been required.

```lua
getloadedmodules() -> {ModuleScript}
```

#### `getscriptbytecode`

Aliases: `dumpstring`

A script's Luau bytecode.

```lua
getscriptbytecode(script) -> string?
```

#### `getscripthash`

SHA-384 of a script's bytecode, as hex.

```lua
getscripthash(script) -> string
```

- SHA-384 hex. Raises (rather than returning nil) when the code isn't available.

#### `decompile`

Turns a script back into readable Luau (uses the bundled decompiler).

```lua
decompile(script: Instance) -> string
```

- Uses the pinned Tovek decompiler, checksum-verified before it runs.
- Bytecode up to 512 KiB (versions 4–14), 10 s, output up to 4 MiB; output is compile-checked.
- Takes a script, not a function.

#### `getsenv`

A running script's environment.

```lua
getsenv(script: Instance) -> table?
```

- nil when the script runs in an Actor VM.
- Errors "script has no instantiated environment" if it never ran.

### Instances & properties

Everything in the DataModel, including what scripts normally can't see.

#### `getinstances`

Every instance, including ones not parented to the game. Doesn't expand stored records.

```lua
getinstances() -> {Instance} · getnilinstances()
```

- Reads the compact stored records; untouched instances aren't expanded.

Example:

```lua
local orphan = Instance.new("Folder")
orphan.Name = "NotInTheGame"

print(#getinstances(), "instances in total")

local found = false
for _, instance in getnilinstances() do
  if instance == orphan then
    found = true
  end
end
print("the parentless folder is in getnilinstances:", found)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
79	instances in total
the parentless folder is in getnilinstances:	true
```

#### `getnilinstances`

Instances whose Parent is nil.

#### `getinstancelist`

Aliases: `getinstancecache`

The raw instance list.

#### `cloneref`

Aliases: `clonereference`

A second reference to the same instance (not ==, but the same object).

```lua
cloneref(instance) -> Instance
```

- A new wrapper for the same instance.

Example:

```lua
local original = workspace
local clone = cloneref(workspace)

print("== says they differ:", original ~= clone)
print("compareinstances knows better:", compareinstances(original, clone))
print(clone.Name, clone.ClassName)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
== says they differ:	true
compareinstances knows better:	true
Workspace	Workspace
```

#### `compareinstances`

Whether two references point at the same instance.

```lua
compareinstances(a, b) -> boolean
```

#### `gethiddenproperty`

Aliases: `sethiddenproperty`

Read or write non-scriptable properties.

```lua
gethiddenproperty(instance, name) -> (value, isHidden) · sethiddenproperty(instance, name, value) -> isHidden
```

- Tags, NetworkOwnerV3, DefinesCapabilities and isPlayerScript are read-only.
- FallenPartsDestroyHeight is clamped to ±1e9, RootPriority to −128…127.

Example:

```lua
local fire = Instance.new("Fire")
print(gethiddenproperty(fire, "size_xml"))

sethiddenproperty(fire, "size_xml", 12)
print("fire.Size is now", fire.Size)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
5	true
fire.Size is now	12
```

#### `gethiddenproperties`

Aliases: `getproperties`

Every property of an instance, visible and hidden.

```lua
getproperties(instance) -> {[string]: any}
```

#### `isscriptable`

Aliases: `setscriptable`

Whether scripts can read a property, and making them able to.

```lua
isscriptable(instance, name) -> boolean? · setscriptable(instance, name, on) -> boolean?
```

Example:

```lua
local fire = Instance.new("Fire")
print("size_xml:", isscriptable(fire, "size_xml"), " Size:", isscriptable(fire, "Size"))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
size_xml:	false	 Size:	true
```

#### `saveinstance`

Aliases: `saveplace`

Writes the game (or one instance) as a Roblox XML .rbxlx/.rbxmx file.

```lua
saveinstance(target?, options?) -> string?
```

- Roblox XML v4 (.rbxlx / .rbxmx) with deterministic RBX… referents.
- Options include FilePath, Decompile, RemovePlayerCharacters, NilInstances and ReturnString.
- Writes into the workspace and respects its quota.

Example:

```lua
local model = Instance.new("Model")
model.Name = "Saved"
Instance.new("Part").Parent = model

local xml = saveinstance(model, { ReturnString = true })
print(#xml, "bytes of Roblox XML")
print(xml:sub(1, 46))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
3534	bytes of Roblox XML
<roblox xmlns:xmime="http://www.w3.org/2005/05
```

#### `GetObjects`

Loads an .rbxm/.rbxmx (from a file or getcustomasset URI) back into instances.

```lua
game:GetObjects(uri) -> {Instance}
```

- Accepts rbxasset://workspace/… URIs from getcustomasset.

#### `isnetworkowner`

Aliases: `getnetworkowner`

Whether this client simulates a part's assembly.

```lua
isnetworkowner(part) -> boolean
```

- Decided from NetworkOwnerV3 and the session's peer data.

Example:

```lua
local part = Instance.new("Part")
part.Parent = workspace
print("this client simulates the part it made:", isnetworkowner(part))
part:Destroy()
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
this client simulates the part it made:	true
```

#### `getsimulationradius`

Aliases: `getsimradius`

The local player's simulation radius.

```lua
getsimulationradius() -> number
```

- LocalPlayer.SimulationRadius, default 1000.

Example:

```lua
print(getsimulationradius())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
1000
```

#### `setsimulationradius`

Aliases: `setsimradius`

Sets it (math.huge is clamped to 1e9).

```lua
setsimulationradius(radius, max?)
```

- math.huge becomes 1e9; also raises MaximumSimulationRadius.

### Signals & interaction

Fire events and touch the world as if a player did.

#### `getconnections`

The connections on a signal: call, disable, enable or disconnect each one.

```lua
getconnections(signal) -> {Connection}
```

- Newest first. Includes connections from Actor VMs.
- Each has Connected, Enabled (writable), LuaConnection, Function, Thread and Fire, Defer, Enable, Disable, Disconnect.

Example:

```lua
local event = Instance.new("BindableEvent")
event.Event:Connect(function(text)
  print("the handler got:", text)
end)

local connection = getconnections(event.Event)[1]
print("enabled:", connection.Enabled)
connection:Fire("a direct call")

connection:Disable()
event:Fire("nobody hears this")
task.wait()
print("disabled, so that Fire reached no one")
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
enabled:	true
the handler got:	a direct call
disabled, so that Fire reached no one
```

#### `firesignal`

Calls a signal's handlers with your arguments.

```lua
firesignal(signal, ...)
```

- Queues each enabled handler as a new task and resumes waiters.

Example:

```lua
local part = Instance.new("Part")
part.Touched:Connect(function(hit)
  print("Touched fired with", hit.Name)
end)

firesignal(part.Touched, workspace.MemoryProbe)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
Touched fired with	MemoryProbe
```

#### `replicatesignal`

Fires a signal the way the client would replicate it to the server.

```lua
replicatesignal(signal, ...)
```

- Sends the event to the server. Arguments must match the signature the server sent.
- Up to 64 queued rows, 256 KiB in total.

#### `cansignalreplicate`

Whether a signal replicates.

#### `getcallbackvalue`

Aliases: `getcallbackfunction`, `getcallbackmember`, `getcallbackthread`

Read a callback property: BindableFunction.OnInvoke or RemoteFunction.OnClientInvoke.

#### `setcallbackvalue`

Aliases: `setcallbackfunction`, `setcallbackmember`, `setcallbackthread`

Replace one.

#### `fireclickdetector`

Clicks a ClickDetector (MouseClick, RightMouseClick, hover).

```lua
fireclickdetector(detector, distance?, event = "MouseClick")
```

- Events: MouseClick, RightMouseClick, MouseHoverEnter, MouseHoverLeave.

Example:

```lua
local part = Instance.new("Part")
part.Parent = workspace
local detector = Instance.new("ClickDetector")
detector.Parent = part

detector.MouseClick:Connect(function(player)
  print("clicked by", player.Name)
end)

fireclickdetector(detector)
task.wait()
part:Destroy()
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
clicked by	FixturePlayer
```

#### `fireproximityprompt`

Triggers a ProximityPrompt, skipping its hold time.

```lua
fireproximityprompt(prompt, holdDuration?, skip?)
```

- Waits HoldDuration unless skipped (needs a yieldable task). Fires the ProximityPromptService events too.

Example:

```lua
local part = Instance.new("Part")
part.Parent = workspace
local prompt = Instance.new("ProximityPrompt")
prompt.HoldDuration = 5
prompt.Parent = part

prompt.Triggered:Connect(function(player)
  print("triggered by", player.Name, "without the 5 second hold")
end)

fireproximityprompt(prompt, 0, true)
task.wait()
part:Destroy()
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
triggered by	FixturePlayer	without the 5 second hold
```

#### `firetouchinterest`

Aliases: `firetouchtransmitter`

Starts or ends a touch between two parts (Touched / TouchEnded).

```lua
firetouchinterest(part, other, state: 0 | 1 | boolean)
```

- 0 or true begins the touch, 1 or false ends it.

Example:

```lua
local pad = Instance.new("Part")
pad.Parent = workspace
pad.Touched:Connect(function(hit)
  print("touch began:", hit.Name)
end)
pad.TouchEnded:Connect(function(hit)
  print("touch ended:", hit.Name)
end)

local root = game.Players.LocalPlayer.Character.HumanoidRootPart
firetouchinterest(pad, root, 0)
task.wait()
firetouchinterest(pad, root, 1)
task.wait()
pad:Destroy()
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
touch began:	HumanoidRootPart
touch ended:	HumanoidRootPart
```

### Input

Synthetic keyboard and mouse, delivered through UserInputService and the PlayerMouse.

#### `keypress`

Aliases: `keyrelease`

Press or release a key by virtual-key code.

```lua
keypress(key) · keyrelease(key)
```

- key can be a KeyCode, its name, or a Windows virtual-key number.

Example:

```lua
local UserInputService = game:GetService("UserInputService")
local connection = UserInputService.InputBegan:Connect(function(input)
  print("InputBegan:", input.KeyCode.Name)
end)

keypress(Enum.KeyCode.E)
task.wait()
print("E is held:", iskeydown(Enum.KeyCode.E))
keyrelease(Enum.KeyCode.E)
connection:Disconnect()
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
InputBegan:	E
E is held:	true
```

#### `iskeydown`

Whether a key is held.

#### `mouse1click`

Aliases: `mouse1press`, `mouse1release`

Left button.

```lua
mouse1click()
```

- Also activates a ProximityPrompt or ClickDetector under the cursor.

#### `mouse2click`

Aliases: `mouse2press`, `mouse2release`

Right button.

#### `mousemoveabs`

Aliases: `mousemoverel`

Move the cursor (absolute or relative). Clicks hit-test the 3D world and GUI under it.

```lua
mousemoveabs(x, y) · mousemoverel(dx, dy)
```

- Synthetic: drives UserInputService and the PlayerMouse, nothing reaches the OS.

Example:

```lua
local mouse = game.Players.LocalPlayer:GetMouse()
mousemoveabs(320, 240)
task.wait()
print("the PlayerMouse is at", mouse.X, mouse.Y)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
the PlayerMouse is at	320	240
```

#### `mousescroll`

Scroll wheel.

### Files

An in-memory workspace for each Luau VM, with a quota. Paths are relative; executable and archive extensions are refused.

#### `readfile`

Aliases: `readfilechunk`

Read a whole file, or a byte range of it.

```lua
readfile(path) -> string · readfilechunk(path, offset, length ≤ 65536)
```

#### `writefile`

Aliases: `appendfile`

Write or append.

```lua
writefile(path, data) · appendfile(path, data)
```

Example:

```lua
writefile("notes.txt", "first line\n")
appendfile("notes.txt", "second line\n")

print(readfile("notes.txt"))
print("exists:", isfile("notes.txt"), " size:", getfileinfo("notes.txt"), "bytes")
delfile("notes.txt")
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
first line
second line
exists:	true	 size:	23	bytes
```

#### `isfile`

Aliases: `isfolder`

Checks.

#### `makefolder`

Aliases: `delfolder`, `delfile`

Create and delete.

#### `listfiles`

A folder's contents.

```lua
listfiles(path = "") -> {string}
```

Example:

```lua
makefolder("configs")
writefile("configs/aim.json", "{}")
writefile("configs/esp.json", "{}")

for _, path in listfiles("configs") do
  print(path)
end

delfolder("configs")
print("folder still there:", isfolder("configs"))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
configs/aim.json
configs/esp.json
folder still there:	false
```

#### `getfileinfo`

Size and timestamps.

```lua
getfileinfo(path) -> number
```

- The size in bytes.

#### `getcustomasset`

Aliases: `getcustomassetdata`

Turns a workspace file into an asset URI the engine can load.

```lua
getcustomasset(path) -> string
```

- Returns rbxasset://workspace/…, usable by Drawing images, Sounds and GetObjects.

Example:

```lua
writefile("icon.png", "pretend these are pixels")
print(getcustomasset("icon.png"))
delfile("icon.png")
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
rbxasset://workspace/icon.png
```

#### `setworkspacequota`

Limits on file size and total workspace size.

```lua
setworkspacequota(fileBytes, totalBytes)
```

- Defaults: 100 MiB per file, 256 MiB in total, 512 entries.

### Console

A separate output window. Headless, so it goes to the client's log.

#### `rconsoleprint`

Aliases: `consoleprint`, `printconsole`, `rprintconsole`

Print.

```lua
rconsoleprint(...)
```

- Up to 128 KiB of console text; clear it to keep printing.

#### `rconsoleinfo`

Aliases: `rconsolewarn`, `rconsoleerr`, `rconsoleerror`, `consoleinfo`, `consolewarn`, `consoleerror`

Print with a level.

#### `rconsoleclear`

Aliases: `consoleclear`

Clear.

#### `rconsolesettitle`

Aliases: `rconsolename`, `consolesettitle`

Title.

#### `rconsolecreate`

Aliases: `rconsoledestroy`, `rconsoleshow`, `rconsolehide`, `rconsolereset`, `consolecreate`, `consoledestroy`, `consolehide`, `takeconsole`

Open, close, show and hide.

#### `rconsoleinput`

Aliases: `rconsoleinputsubmit`, `consoleinput`

Read a line of input.

```lua
rconsoleinput() -> string
```

- Yields until the host answers.

### Network

HTTP and WebSockets from the client.

#### `request`

Aliases: `http_request`

Any HTTP request: Url, Method, Headers, Body. Returns StatusCode, Headers, Body.

```lua
request({ Url, Method?, Headers?, Cookies?, Body? }) -> { StatusCode, StatusMessage, Success, Headers, Body }
```

- Yields. 20 s timeout, 3 redirects, 16 MiB response.
- Non-2xx answers are returned, not raised.

Example:

```lua
local response = request({ Url = "https://rove.wtf/robots.txt", Method = "GET" })
print(response.StatusCode, response.Success)
print(response.Body)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
200	true
User-agent: *
Allow: /
Sitemap: https://rove.wtf/sitemap.xml
```

#### `HttpGet`

Aliases: `httpget`

GET a URL and return the body (also game:HttpGet).

```lua
game:HttpGet(url) -> string
```

- Raises on non-2xx.

Example:

```lua
print(game:HttpGet("https://rove.wtf/robots.txt"))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
User-agent: *
Allow: /
Sitemap: https://rove.wtf/sitemap.xml
```

#### `HttpPost`

Aliases: `httppost`

POST (also game:HttpPost).

```lua
game:HttpPost(url, data, contentType?, compress?, headers?) -> string
```

#### `WebSocket.connect`

Open a WebSocket: Send, Close, OnMessage, OnClose.

```lua
WebSocket.connect(url) -> socket
```

- ws:// or wss://; up to 16 sockets, 128 KiB per message.
- socket:Send(data, binary?), socket:Close(), socket.OnMessage, socket.OnClose.

### Encoding & compression

Plus the crypt library below.

#### `base64_encode`

Aliases: `base64encode`, `base64.encode`

Base64.

Example:

```lua
local encoded = base64_encode("rove")
print(encoded, "->", base64_decode(encoded))
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
cm92ZQ==	->	rove
```

#### `base64_decode`

Aliases: `base64decode`, `base64.decode`

Base64.

#### `jsonencode`

Aliases: `jsondecode`

JSON (same rules as HttpService).

Example:

```lua
local text = jsonencode({ name = "rove", tests = 86 })
print(text)
print(jsondecode(text).tests)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
{"name":"rove","tests":86}
86
```

#### `lz4compress`

Aliases: `lz4decompress`

LZ4 block compression.

```lua
lz4compress(data) · lz4decompress(data, size?)
```

- Raw LZ4 blocks, 256 KiB each way.

Example:

```lua
local data = string.rep("replication ", 200)
local packed = lz4compress(data)

print(#data, "bytes ->", #packed)
print("round trip:", lz4decompress(packed, #data) == data)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
2400	bytes ->	31
round trip:	true
```

#### `zstdcompress`

Aliases: `zstddecompress`

Zstandard, the same codec Roblox uses on the wire.

```lua
zstdcompress(data) -> string · zstddecompress(data) -> string
```

- 256 KiB in; up to 32 MiB out.

Example:

```lua
local data = string.rep("replication ", 200)
local packed = zstdcompress(data)

print(#data, "bytes ->", #packed)
print("round trip:", zstddecompress(packed) == data)
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
2400	bytes ->	29
round trip:	true
```

#### `hmac`

HMAC over a hash algorithm.

### Teleports

Code that runs again after the client teleports.

#### `queue_on_teleport`

Aliases: `queueonteleport`, `queueontp`

Queue source to run in the next place.

```lua
queue_on_teleport(source: string)
```

- Compile-checked. Up to 16 entries, 128 KiB each.

Example:

```lua
queue_on_teleport('print("hello from the next place")')
print(#getteleportqueue(), "script queued")

clear_teleport_queue()
print(#getteleportqueue(), "after clearing")
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
1	script queued
0	after clearing
```

#### `clear_teleport_queue`

Aliases: `clearteleportqueue`, `clear_queue_on_teleport`, `clearqueueonteleport`, `cleartpqueue`

Empty the queue.

#### `getteleportqueue`

What's queued.

### Actors & parallel Luau

Each Actor runs in its own Luau VM; these reach across them.

#### `getactors`

Every Actor in the game.

```lua
getactors() -> {Actor}
```

Example:

```lua
print(#getactors(), "Actors in this world")
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
0	Actors in this world
```

#### `run_on_actor`

Runs a chunk inside an Actor's VM, with the world synced both ways.

```lua
run_on_actor(actor, source: string, ...) -> ...
```

- Returns values only if the chunk finishes in its first 50 ms slice.

#### `create_comm_channel`

Aliases: `get_comm_channel`

A BindableEvent bridge between your VM and Actor VMs (up to 256 channels).

```lua
create_comm_channel() -> (id, BindableEvent) · get_comm_channel(id)
```

- Up to 256 channels.

### Physics

Rove simulates locally owned assemblies; these drive the solver directly.

#### `stepphysics`

Advances local physics by dt (also Workspace:StepPhysics).

```lua
stepphysics(dt, parts?)
```

- dt up to 2 s in at most 120 substeps, up to 4,096 parts.

Example:

```lua
local part = Instance.new("Part")
part.Position = Vector3.new(0, 100, 0)
part.Parent = workspace

stepphysics(0.5)
print(string.format("after half a second: y = %.2f", part.Position.Y))
part:Destroy()
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
after half a second: y = 74.66
```

#### `setphysicsenabled`

Aliases: `isphysicsenabled`

Turns local simulation on or off.

```lua
setphysicsenabled(on: boolean) · isphysicsenabled()
```

Example:

```lua
print("simulating on its own:", isphysicsenabled())
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
simulating on its own:	false
```

### Drawing

2D overlay objects: Line, Text, Image, Circle, Square, Quad, Triangle.

#### `Drawing.new`

Creates a drawing object. Set Visible, Color, Position … and call Remove when done.

```lua
Drawing.new("Line" | "Square" | "Circle" | "Text" | "Image" | "Triangle" | "Quad")
```

- Up to 512 objects. Common: Visible, ZIndex, Transparency, Color.
- Drawing.ToSVG(width, height) renders the scene to SVG.

Example:

```lua
local line = Drawing.new("Line")
line.From = Vector2.new(0, 0)
line.To = Vector2.new(100, 50)
line.Color = Color3.fromRGB(188, 160, 255)
line.Visible = true

print("a render object:", isrenderobj(line))
print(Drawing.ToSVG(100, 50))
line:Remove()
```

Output, recorded from a real Rove client (rove 1.00 · 29 Nov 2026):

```text
a render object:	true
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="50" viewBox="0 0 100 50"><line x1="0" y1="0" x2="100" y2="50" opacity="1" stroke="rgb(188,160,255)" stroke-width="1" fill="none"/></svg>
```

#### `Drawing.Fonts`

UI, System, Plex and Monospace.

#### `isrenderobj`

Whether a value is a Drawing object.

#### `getrenderproperty`

Aliases: `setrenderproperty`

Read or write a drawing's property by name.

#### `cleardrawcache`

Removes every drawing.

## Libraries

- **crypt** (Hashing, encryption and encoding): base64encode, base64decode, encrypt, decrypt, generatebytes, generatekey, hash, hmac, pbkdf2, derive, hex_encode, hex_decode
- **cache** (The instance reference cache): invalidate, iscached, replace, cloneref, compareinstances, cached
- **debug** (Luau's debug library, plus executor additions): getconstant, getconstants, setconstant, getupvalue, getupvalues, setupvalue, setupvalues, getproto, getprotos, getstack, setstack, getinfo, getfuncinfo, getfunctionhash, getcallstack, setcallstack, getregistry, getmetatable, setmetatable, getrawmetatable, setrawmetatable, isvalidlevel, setmemorycategory, resetmemorycategory, profilebegin, profileend, traceback, info
- **Drawing** (2D overlay): new, Fonts, ToSVG
- **WebSocket** (Also websocket / ws): connect, Connect
- **http** (Same as the globals): request, HttpGet, HttpPost
- **base64**: encode, decode

## Notes that apply everywhere

- **Yielding.** HTTP, WebSocket, `fireproximityprompt` (with a hold) and `rconsoleinput` wait for an answer, so call them from a task (`task.spawn`) or a script, not from inside a metamethod.
- **Files.** Every Luau VM has its own in-memory workspace. Nothing is written to your disk, and files don't outlive the client. Paths are relative and can't escape the workspace.
- **Input.** Keyboard and mouse functions drive Rove's own input system (`UserInputService`, the `PlayerMouse`, click detectors and prompts under the cursor). Nothing reaches the operating system.
- **Identity.** Threads start at identity 8.
- **Limits.** Every buffer, queue and size has a limit, and hitting one raises a clear error instead of growing without bound. The limits are listed on each function.
