Advertisement
Guest User

test

a guest
Feb 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. rednet.open("right")
  2. if rednet.isOpen("right") == true then
  3.   print("Connection acquired.")
  4. end
  5. rednet.host("test","sender")
  6. local id = rednet.lookup("test")
  7. print("Computers found:")
  8. print(id)
  9. local sent = rednet.send(id,"Testing")
  10. if sent == true then
  11.   print("Message sent.")
  12. else
  13.   print("Message failed to send!")
  14. rednet.close("right")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement