atlasim

hello world oc

May 21st, 2021 (edited)
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. function os.sleep(timeout)
  2.   checkArg(1, timeout, "number", "nil")
  3.   local deadline = computer.uptime() + (timeout or 0)
  4.   repeat
  5.     event.pull(deadline - computer.uptime())
  6.   until computer.uptime() >= deadline
  7. end
  8. gpu.set(1,1,"Hello World!")
  9. os.sleep(5000)
  10. gpu.set(1,1,"Hello World!")
Add Comment
Please, Sign In to add comment