PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

LuaSettings

Show deprecated

LuaSettings

Show deprecated

The LuaSettings allows you to change certain properties, in regards to how Roblox handles Lua.
It is labeled as Lua in the Roblox Studio Settings menu.


Properties

bool

AreScriptStartsReported

Toggles whether or not script starts are logged in the output.
If set to true, the output will print blue text indicating what scripts are running, and their origin point in the DataModel.

double

DefaultWaitTime

How long a call to wait() with no arguments will yield.

int

GcFrequency

How many heartbeats there are between manual GC steps in Lua.

int

GcLimit

The ideal limit above which Roblox triggers aggressive garbage collection, in average KB per LuaSettings/GcFrequency.

int

GcPause

Sets the size of pauses between successive garbage collections in Lua.

int

GcStepMul

Sets the value of Lua’s garbage collection step multiplier, which controls the ‘granularity’ of Lua’s garbage collector.

float

WaitingThreadsBudget

Sets the maximum percent of Roblox’s duty cycle that can be used to resume waiting Lua threads.

This defaults to 0.1 (or 10%)

Functions

Events