Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- going = false
- while true do
- senderId, message, protocol = rednet.receive()
- if (message == "prank cole") then
- if (going) then
- rs.setOutput("top",false)
- print("turned off")
- going = false
- else
- rs.setOutput("top",true)
- print("turned on")
- going = true
- end
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement