LazyShpee

Global Variable "Monitoring"

Mar 8th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. setmetatable(_G, {
  2.     __newindex = function (t, k, v)
  3.         print("Intercept newindex instruction in global scope")
  4.         rawset(t, k, v)
  5.     end})
  6.  
  7. local test = "yolo"
  8. yolo = "test"
Advertisement
Add Comment
Please, Sign In to add comment