Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local env = table.clone(getgenv());
- local x = getrawmetatable(getfenv());
- setreadonly(x, false);
- x.__index = function(dictionary, key)
- if env[key] == nil then
- print("attempt to call a nil value - " .. key);
- return function() end;
- end
- return env[key];
- end
- setreadonly(x, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement