Debugdebug.getconstant
Debug

debug.getconstant

Retrieves one constant from a function or stack level.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function debug.getconstant(func: (...any) -> (...any) | number, index: number): number | string | boolean | nil

Returns

The selected constant or nil.