Advertisement
SinisterMemories

Loadstring.lua

Apr 15th, 2020
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local aliases = {
  2.     "execute",
  3.     "loadstring",
  4.     "run"
  5. }
  6.  
  7. local function callback(...)
  8.     local source = table.concat({...}, " ")
  9.  
  10.     local func = loadstring(source)
  11.     local success, response = pcall(func)
  12.  
  13.     return response
  14. end
  15.  
  16. return aliases, callback
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement