Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("monitor_##")
- local i = 0
- function getRandColour()
- if i == 0 then
- i = 1
- return colours.red
- elseif i == 1 then
- i = 2
- return colours.blue
- elseif i == 2 then
- i = 3
- return colours.yellow
- else
- i = 0
- return colours.grey
- end
- end
- while (true) do
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setTextScale(1.7)
- monitor.setTextColor(getRandColour())
- monitor.write("MESSAGE HERE")
- monitor.setCursorPos(1,2)
- monitor.write("Access Level #")
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement