osmarks

getMetaOwner polyfill

Apr 4th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local owner = "ownergoeshere"
  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
Add Comment
Please, Sign In to add comment