View difference between Paste ID: CQEdcvJ0 and ZdTVs41P
SHOW: | | - or go back to the newest paste.
1
-- Reedalini -- Flashing Scrolling text -- IMPORTANT YOU NEED AN ADVANCED MONITOR! --
2
-------------  Begin here  --------------- (Everything with "--" before it is a hint)
3
4
args = {...}
5
Name = (args[1])
6
local pos = 10
7-
mon = peripheral.wrap("SIDE") -- Replace side with the side that the monitor is on
7+
mon = peripheral.wrap("left") -- Replace side with the side that the monitor is on
8
mon.clear()
9
color = 1
10-
mon.setBackgroundColor(color)
10+
mon.setBackgroundColor(8)
11-
mon.setTextColor(32768) -- This makes the text black the full list is on the CC wiki
11+
mon.setTextColor(16384) -- This makes the text black the full list is on the CC wiki
12
mon.setTextScale(5) -- This is the largest text scale you can make
13
while true do
14
 if pos==-10 then 
15
  pos = 10
16
 end
17
 mon.clear()
18
 mon.setCursorPos(pos,1)
19
 mon.write(Name)
20
 pos = pos-1
21
 os.sleep(0.15) -- Replace 0.15 with any number you want (In seconds)
22
 if (color < 16000) then
23
  color = color + color
24
 else
25
  color = 1
26
 end
27-
 mon.setBackgroundColor(color)
27+
 mon.setBackgroundColor(8)
28
end
29
30
-- Now name it... --
31
-- Ex: I named it "lol" --
32-
-- the command would be "lol <word> --
32+
-- the command would be "lol" <word> --