Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- local inS = "right"
- local otS = "left"
- local udS = "back"
- h = io.open("counter", "w")
- function Pulse(nColors)
- rs.setBundledOutput(otS, nColors)
- sleep(0.2)
- rs.setBundledOutput(otS, 0)
- end
- h:write("2")
- h:close()
- while true do
- if rs.getInput(udS) == true then
- shell.run("1floor-drv")
- else
- Pulse(colors.yellow)
- sleep(0.2)
- shell.run("1floor-drv")
- end
- end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.