Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("back") -- get monitor
- aX,aY = mon.getSize()
- mon.setTextScale(2)
- mon.setTextColor(colors.orange)
- mon.setBackgroundColor(colors.black)
- mon.clear()
- sign = (" Mad Scientist's")
- centerText = ((aX/2) - (string.len(sign)/2))+2
- -- mon.setCursorPos(centerText,1)
- mon.setCursorPos(1,1)
- mon.write(sign)
- showText = "24/0 Hours Open! Open! Open! Open! Always Open!"
- txtM = aX + 1
- while true do
- mon.setCursorPos(txtM,2)
- mon.clearLine()
- mon.setTextColor(colors.green)
- mon.write(showText)
- check = -1 * string.len(showText)
- if txtM < check then
- txtM = aX + 1
- else
- txtM = txtM - 1
- end
- os.sleep(0.3)
- end
Add Comment
Please, Sign In to add comment