Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sentence = 'fuck joey' -- The thing you want it to type out
- local label = -- Your textlabel
- local len = string.len(sentence) -- It gets the lenght of your string
- repeat -- Isn't neccesary, it just makes it so it loops
- wait() -- pretty neccesary if you don't want your studio to crash xD
- n = 0 -- Sets n (position) to 0
- repeat -- Loop is neccesary if you don't want it to do manually
- wait(0.2) -- Waittime
- n = n + 1 -- Add to position with 1
- io.write(string.sub(sentence,1,n)) -- Sets the text using string.sub
- until n >= len -- Waits for the lenght to be the same as the position
- until false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement