Debugdebug.getproto
Debug

debug.getproto

Retrieves one nested prototype.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function debug.getproto(func: (...any) -> (...any) | number, index: number, activated: boolean?): (...any) -> (...any) | { (...any) -> (...any) }

Returns

The prototype, or active functions when activated is true.