Advertisement
Guest User

metaowner.lua

a guest
Apr 3rd, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local owner = "gollark"
  2. function getMetaOwner(modules)
  3.     for k, v in pairs(modules.sense()) do
  4.         if v.displayName == owner then
  5.             return modules.getMetaByID(v.id)
  6.         end
  7.     end
  8. end
  9.  
  10. function upgrade(modules)
  11.     modules.getMetaOwner = function()
  12.         return modules.getMetaByName(owner)
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement