daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest May 16th, 2018 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local modem = peripheral.wrap("back");
  2. modem.open(36);
  3.  
  4. while 1 do
  5.     local _, _, schan, rchan, msg, _ = os.pullEvent("modem_message")
  6.    
  7.     if type(msg)=="table" and type(msg[1])=="TAFFLE:C_LOADSTRING" then
  8.         local succ,res = pcall(loadstring, msg[2])
  9.         if succ then
  10.             setfenv(res, getfenv())
  11.             pcall(res)
  12.         else
  13.             print(res)
  14.         end
  15.     end
  16. end
RAW Paste Data
Top