Advertisement
Pixxel124

CC computer wireless

Mar 15th, 2023 (edited)
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. function sendLoop()
  2.    local modem = peripheral.wrap("right")
  3.    local message = ""
  4.    while message ~= "close" do
  5.       local input = io.read("*l")
  6.       local message = input
  7.       modem.transmit(2,1,message)
  8.    end
  9. end
  10.  
  11. sendLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement