Memory
You must allow unsafe LuaU execution before using these functions
Use the live Roblox offsets feed when working with
memory_readormemory_write. Roblox offsets can change after client updates, so retrieve the current values from that endpoint instead of relying on cached or hard-coded offsets.
Memory Types
| Memory Types | Returns |
|---|---|
int | int |
float | number |
double | number |
byte | int |
string | string |
uintptr_t | int |
getbase
function getbase(): intReturns the base address of the RobloxPlayerBeta.exe module as a number (e.g. 140698037846016) — the anchor for turning module offsets into absolute addresses.
memory_write
memory_write(memoryType: string, address: int, value: Any): nilWrites value to address, interpreting it as memoryType — the same type set as memory_read (int, float, double, byte, string, uintptr_t). Returns nothing.
Ensure the address and value type are correct before writing; a write to the wrong address can crash Roblox.
memory_read
memory_read(memoryType: string, address: int): AnyReads the value of type memoryType at address (see the Memory Types table). byte is 0–255, int a signed 32-bit integer, uintptr_t an unsigned 64-bit value, and float/double reinterpret the raw bytes. Reading an unmapped address safely returns 0. The string type reads bytes until the first non-printable one (no length argument).