Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This script is designed to track all table access
- TableYouWantHere={23, 13, 15} -- That's the only thing you have to edit.
- local x=TableYouWantHere
- local TableYouWantHere={}
- setmetatable(TableYouWantHere, {
- __index=function(Table, Key)
- --Stuff
- print("Indexed table")
- return x[Key]
- end,
- __newindex=function(Table, Key, Value)
- --stuff
- print("Created new index")
- x[Key]=Value
- end
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement