tomtrein

Untitled

Jul 22nd, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. rednet.open("back")
  2. rs.setOutput("top", false)
  3. while true do
  4. local senderId, message, protocol = rednet.receive()
  5. if message == "on" then
  6. rs.setOutput("top", true)
  7. elseif message == "off" then
  8. rs.setOutput("top", false)
  9. end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment