Advertisement
1vannn

EvilBob

Jun 23rd, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. rednet.open("left")
  2. going = false
  3. while true do
  4.     senderId, message, protocol = rednet.receive()
  5.     if (message == "prank cole") then
  6.         if (going) then
  7.             rs.setOutput("top",false)
  8.             print("turned off")
  9.             going = false
  10.         else
  11.             rs.setOutput("top",true)
  12.             print("turned on")
  13.             going = true
  14.         end
  15.     end
  16.     sleep(5)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement