Skip to content

llSetMemoryLimit

function ll.SetMemoryLimit(Limit: number): number

Requests Limit bytes to be reserved for this script.

Returns TRUE or FALSE indicating whether the limit was set successfully.

This function has no effect if the script is running in the LSO VM.

Parameters
Limit (number)
The amount to reserve, which must be less than the allowed maximum (currently 64KB) and not already have been exceeded.

Add example usage here showing SLua/Luau syntax with ll.SetMemoryLimit().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.