Advertisement
DeltaTechnology

Untitled

Jun 20th, 2023
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. local env = table.clone(getgenv());
  2.  
  3. local x = getrawmetatable(getfenv());
  4. setreadonly(x, false);
  5.  
  6. x.__index = function(dictionary, key)
  7. if env[key] == nil then
  8. print("attempt to call a nil value - " .. key);
  9. return function() end;
  10. end
  11. return env[key];
  12. end
  13.  
  14. setreadonly(x, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement