arismoko

Untitled

Oct 6th, 2021 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. c = peripheral.wrap("right")
  2. rednet.open("back")
  3. local user = disk.getLabel("top")
  4. if c.isOn() == true then
  5. c.reboot()
  6.  
  7. elseif c.isOn() == false then
  8. c.turnOn()
  9. end
  10.  
  11.  
  12. local senderId, message, protocol = rednet.receive()
  13. if senderId == 127 then
  14. rednet.broadcast(message.." - ".. user, "flappy")
  15. write(user.."'s score has been sent")
  16. end
  17.  
Add Comment
Please, Sign In to add comment