Skip to content

llGetUsedMemory

function ll.GetUsedMemory(): number

Returns the current used memory for the current script. Non-mono scripts always use 16K.

Returns the integer of the number of bytes of memory currently in use by the script. Non-mono scripts always use 16K.

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

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