Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SERVER_ID = 6
- rednet.open("back")
- function Main()
- term.clear()
- print("Open or close")
- local Input = string.lower(read());
- if Input == "open" then
- rednet.send(SERVER_ID, {"door", true})
- elseif Input == "close" then
- rednet.send(SERVER_ID, {"door", false})
- end
- Main()
- end
- Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement