Reference/Datatypes/LoadstringOptions
Datatype · Structs

LoadstringOptions

struct

Options table passed to rbxcli.loadstring. All fields are optional; omitted fields use the listed defaults.

Fields

NameTypeDescription
chunknamestring?

Chunk name used in tracebacks for the compiled closure. Defaults to "=loadstring".

dbgnumber?

Luau debug-info level (0..2). Defaults to 2.

nativeboolean?

If true and Luau CodeGen is supported on the host, the resulting closure is compiled to native code. Defaults to true.

optnumber?

Luau compiler optimization level (0..2). Defaults to 1.

typeinfonumber?

Luau type-info emission level (0..2). Defaults to 2.