Closuresloadstring
Closures

loadstring

Compiles source into a runnable function.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function loadstring<A...>(source: string, chunkname: string?): (((A...) -> any) | nil, string?)

Returns

The compiled function, or nil and an error string for invalid source.