memory_write
Writes to the game process using the same type names as memory_read.
Syntax
memory_write(type: string, address: number, value: any) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
type | string | The type value used by the call. |
address | number | The memory address to access. |
value | any | The value to apply. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
memory_write is part of the Raw memory access library. Raw memory access reads directly from the Roblox process and requires Allow Unsafe Luau.
The change is applied directly to the live target, so later reads observe the updated value.
Example
memory_write("int", getbase() + 0x123456, 100)
Notes
- Requires Allow Unsafe Luau to be enabled.
- Requires Allow Unsafe Luau and can crash the game if misused.