Advertisement
DabDaddy6223

clienttestone

Oct 28th, 2022
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local modem = peripheral.find("modem") or error("Modem not Found", 0)
  2. modem.open(2)
  3.  
  4. local event, side, channel, replyChannel, message, distance
  5. repeat
  6.     event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
  7. until channel == 2
  8.  
  9. print("Receieved Message: " .. tostring(message))
  10.  
  11. modem.transmit(1, 2, "Pong")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement