Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- local light = false
- while (true) do
- local senderId, message, protocol = rednet.receive()
- if (message == "light") then
- if (light == false) then
- light = true
- for i=1,sx do
- m
- end
- else
- light = false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement