Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.find("monitor")
- function drawText(x, y, text, color)
- monitor.setCursorPos(x, y)
- monitor.setBackgroundColor(color)
- monitor.write(text)
- end
- monitor.setBackgroundColor(colors.black)
- monitor.clear()
- local loading = 0
- while true do
- drawText(20, 8, "Loading...", colors.black)
- drawText(14 + x, 15, " ", colors.gray)
- drawText(14 + x, 17, " ", colors.gray)
- drawText(14 + x, 16, " ", colors.gray)
- drawText(36 + x, 16, " ", colors.gray)
- for x = 1, loading do
- drawText(15 + x, 15, " ", colors.white)
- end
- loading = loading + 1
- if loading > 21 then
- loading = 0
- end
- os.sleep(0.8)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement