Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. local sentence = 'fuck joey' -- The thing you want it to type out
  2. local label = -- Your textlabel
  3.  
  4. local len = string.len(sentence) -- It gets the lenght of your string
  5.  
  6.  
  7. repeat -- Isn't neccesary, it just makes it so it loops
  8. wait() -- pretty neccesary if you don't want your studio to crash xD
  9. n = 0 -- Sets n (position) to 0
  10. repeat -- Loop is neccesary if you don't want it to do manually
  11. wait(0.2) -- Waittime
  12. n = n + 1 -- Add to position with 1
  13. io.write(string.sub(sentence,1,n)) -- Sets the text using string.sub
  14. until n >= len -- Waits for the lenght to be the same as the position
  15. until false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement