Debugdebug.getconstants
Debug

debug.getconstants

Retrieves all bytecode constants from a function or stack level.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function debug.getconstants(func: (...any) -> (...any) | number): { number | string | boolean | nil }

Returns

A list of constants.