ThatGravyBoat

Untitled

Aug 12th, 2023
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. local monitor = peripheral.find("monitor")
  2.  
  3. function drawText(x, y, text, color)
  4. monitor.setCursorPos(x, y)
  5. monitor.setBackgroundColor(color)
  6. monitor.write(text)
  7. end
  8.  
  9. local loading = 0
  10.  
  11. while true do
  12. monitor.setBackgroundColor(colors.black)
  13. monitor.clear()
  14. drawText(20, 8, "Loading...", colors.black)
  15. drawText(14 + x, 15, " ", colors.gray)
  16. drawText(14 + x, 17, " ", colors.gray)
  17. drawText(14 + x, 16, " ", colors.gray)
  18. drawText(36 + x, 16, " ", colors.gray)
  19. for x = 1, loading do
  20. drawText(15 + x, 15, " ", colors.white)
  21. end
  22. loading = loading + 1
  23. if loading > 21 then
  24. loading = 0
  25. end
  26. os.sleep(0.8)
  27. end
Advertisement
Add Comment
Please, Sign In to add comment