Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local code = string.dump(function()
- local tbl = {}
- local mt = {}
- --Setting metatable
- mt.__call = function(t, ...)
- local args = {...}
- if args[#args] == true then
- return args[(args[#args-1])]
- end
- end
- mt.__tostring = function(t) return t end
- mt.__concat = function(t,v) return v:reverse() end
- --Set mt to tbl
- setmetatable(tbl, mt)
- end)
- local result = "loadstring('"
- for i = 1, code:len() do
- result = result.. "\\".. code:sub(i,i):byte()
- end
- result = result.. "')();"
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment