Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nightTime = 19
- local dayTime = 7.3
- function returnTime()
- local currTime = os.time()
- if currTime >= dayTime or currTime < nightTime then
- return true
- else
- return false
- end
- end
- while true do
- rs.setOutput("right", returnTime())
- sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment