Advertisement
DYankee

endNet

Sep 17th, 2022
979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. Modem.open(1)
  2. local listen = true
  3.  
  4.  
  5.  
  6. while listen == true do
  7.     local event, side, channel, replyChannel, message, distance
  8. repeat
  9.     event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
  10. until channel == 1
  11. print(tostring(message))
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement