Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chat = peripheral.wrap("bottom")
- function move(side)
- for i = 1, 3 do
- rs.setOutput(side, true)
- os.sleep(0.5)
- rs.setOutput(side, false)
- os.sleep(0.5)
- end
- end
- while true do
- _, user, command = os.pullEvent("command")
- if command[1] == "open" then
- move("top")
- elseif command[1] == "close" then
- move("back")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement