Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function slowPrint(text, timeBetweenLetters, ignoreSpace)
- for i = 1, #text do
- local c = text:sub(i,i)
- if not ignoreSpace or (ignoreSpace and c ~= " ") then
- io.write(c)
- os.sleep(timeBetweenLetters)
- end
- end
- end
- --slowPrint("Hello World", 0.3, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement