Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --pkuNuauq
- Input = false
- timer = 100 --delay in seconds
- --main
- while true do
- Input = redstone.getInput("right")
- if Input then
- redstone.setOutput("left", true)
- print("ON")
- os.sleep(timer)
- redstone.setOutput("left", false)
- print("OFF")
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement