VINDICTA.TOP
Debug · Library
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

debug.getprotos

Returns all inner function protos of a function.

function debug.getprotos(funcfuncfunction | numberA Luau function or stack level.: function | number): {function}{function}Array of inner proto functions.

Usage

Call all inner protos
local function myFunction()
	local function _1() print("Hello,") end
	local function _2() print("world!") end
end
for i in ipairs(debug.getprotos(myFunction)) do
	debug.getproto(myFunction, i, true)[1]()
end