Advertisement
mini_froakie1

remote_control_controller

Jul 7th, 2024 (edited)
445
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | Gaming | 0 0
  1. local mainChannel = 21
  2. local modem = peripheral.wrap("back")
  3. local event, side, channel, replyChannel, message, distance
  4. local input
  5.  
  6. modem.open(mainChannel)
  7.  
  8. while true do
  9.     input = read()
  10.     modem.transmit(mainChannel, mainChannel, input)
  11.     event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
  12.     message = tostring(message)
  13.     print(message)
  14. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement