Returns the Luau registry - the table the VM keeps its internal references and loaded libraries in.
debug.getregistry(): table
The same table object comes back on every call. Its direct contents are the VM’s live internal references (threads, functions, userdata) plus _LOADED - every library and module required this session. The threads sitting in here are what getscriptfromthread walks to map a thread back to its owning script.