Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("right")
- local monitorSize = monitor.getSize()
- local currentCursorPos = 0
- local text = "Warning"
- local c1 = 0
- local c2 = 1
- local offset = 1
- monitor.clear()
- monitor.setTextScale(3)
- monitor.setCursorPos(1,1)
- currentCursorPos = 0 - #text + 1
- while true do
- c2 = offset
- while c1 <= monitorSize do
- if c2 <= #text then
- monitor.write(strsub(text, c2, c2))
- c2 = c2 + 1
- print(c2)
- else
- c2 = 1
- end
- c1 = c1 +1
- print (c1)
- sleep (1)
- end
- sleep (1)
- offset = offset + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement