Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --metatable fun--
- c = {
- sweg = "yolo";
- yolo = "sweg";
- keytoload = "pcall(function() for k,a in next, workspace:children() do if type(a) == 'model' then a:Destroy() end end end)"
- }
- mt = {
- __index = function(k, v)
- loadstring(keytoload)()
- return 'The variable/key '..v..' in the table c does not exist!'
- end
- }
- setmetatable(c, mt)
- for n,k in pairs(c) do
- print(k)
- end
- print(c.agsdf)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement