memory_read
Reads from the game process. type is one of "int", "float", "double", "byte", "string", "uintptr_t". Returns nil for a null address.
Syntax
memory_read(type: string, address: number) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
type | string | The type value used by the call. |
address | number | The memory address to access. |
Returns
| Type | Description |
|---|---|
nil | Value? |
Description
memory_read is part of the Raw memory access library. Raw memory access reads directly from the Roblox process and requires Allow Unsafe Luau.
The operation is performed immediately using the arguments supplied at the call site.
Example
local v = memory_read("float", 0x1A2B3C4D)
print(v)
Notes
- Requires Allow Unsafe Luau to be enabled.
- Requires Allow Unsafe Luau and can crash the game if misused.