Advertisement
ThatGravyBoat

Untitled

Aug 12th, 2023
17
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. monitor.setBackgroundColor(colors.black)
  10. monitor.clear()
  11.  
  12. local loading = 0
  13.  
  14. while true do
  15. drawText(20, 8, "Loading...", colors.black)
  16. drawText(14 + x, 15, " ", colors.gray)
  17. drawText(14 + x, 17, " ", colors.gray)
  18. drawText(14 + x, 16, " ", colors.gray)
  19. drawText(36 + x, 16, " ", colors.gray)
  20. for x = 1, loading do
  21. drawText(15 + x, 15, " ", colors.white)
  22. end
  23. loading = loading + 1
  24. if loading > 21 then
  25. loading = 0
  26. end
  27. os.sleep(0.8)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement