Guest User

os.time(edited)

a guest
Jan 9th, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local time = os.time()
  2. time = textutils.formatTime(time, true)
  3.  
  4. get = true
  5. while true do
  6. while get do
  7. if time == "08:00" then
  8. redstone.setOutput("back", true) -- if the redstone is at the back of computer etc
  9. elseif time == "20:00" then
  10. redstone.setOutput("back", false) -- if the redstone is at the back of computer etc
  11. end
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment