Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- link = arg[1]
- if link == nil then
- link = "Test.txt"
- end
- file = fs.open(link, "r")
- text = file.readAll()
- file.close()
- scrollspeed = arg[2]
- if scrollspeed == nil then
- scrollspeed = 0.1
- else
- scrollspeed = tonumber(scrollspeed)
- end
- looping = arg[3]
- if looping == nil then
- looping = false
- end
- repeat
- for i=1, string.len(text), 1 do
- write(text:sub(i, i))
- sleep(scrollspeed)
- end
- until not looping
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement