local function container() local function nested() return 1 end return nestedendlocal proto = debug.getproto(container, 1)print(isprotohooked(proto)) -- falsehookproto(proto, function() return 2end)print(isprotohooked(proto)) -- truerestoreproto(proto)print(isprotohooked(proto)) -- false