Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sTime = os.time()
- if sTime < 6 and sTime > 0 then
- rs.setOutput("back", false )
- else
- rs.setOutput("back", true)
- end
- while true do
- sTime = os.time()
- if sTime < 6 and sTime > 0 then
- os.setAlarm( 6 )
- os.pullEvent("alarm")
- rs.setOutput("back", true)
- elseif sTime > 6 or sTime < 0 then
- os.setAlarm( 0 )
- os.pullEvent("alarm")
- rs.setOutput("back", false )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment