Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Reedalini -- Flashing Scrolling text -- IMPORTANT YOU NEED AN ADVANCED MONITOR! --
- ------------- Begin here --------------- (Everything with "--" before it is a hint)
- args = {...}
- Name = (args[1])
- local pos = 10
- mon = peripheral.wrap("SIDE") -- Replace side with the side that the monitor is on
- mon.clear()
- color = 1
- mon.setBackgroundColor(color)
- mon.setTextColor(32768) -- This makes the text black the full list is on the CC wiki
- mon.setTextScale(5) -- This is the largest text scale you can make
- while true do
- if pos==-10 then
- pos = 10
- end
- mon.clear()
- mon.setCursorPos(pos,1)
- mon.write(Name)
- pos = pos-1
- os.sleep(0.15) -- Replace 0.15 with any number you want (In seconds)
- if (color < 16000) then
- color = color + color
- else
- color = 1
- end
- mon.setBackgroundColor(color)
- end
- -- Now name it... --
- -- Ex: I named it "lol" --
- -- the command would be "lol <word> --
Advertisement
Add Comment
Please, Sign In to add comment