reset234567890

test

Apr 19th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. local msgs=0
  2. function say(msg,speed,tme)
  3. msgs=msgs+1
  4. local bg=Instance.new("BillboardGui",char)
  5. bg.Enabled=true;
  6. bg.Active=true
  7. bg.Adornee=hed
  8. bg.Size=UDim2.new(1,0,1,0)
  9. bg.StudsOffset=Vector3.new(0,3+msgs,0)
  10. local txt=Instance.new("TextLabel",bg)
  11. txt.Position=UDim2.new(0,0,0,0)
  12. txt.Size=UDim2.new(8,0,1.3,0)
  13. txt.BackgroundTransparency=1
  14. txt.BorderSizePixel=0
  15. txt.Font="Bodoni"
  16. txt.TextScaled=true;
  17. txt.TextWrapped=true;
  18. txt.TextColor3=Color3.new(255,255,255)
  19. txt.TextStrokeTransparency=0
  20. txt.TextStrokeColor3=Color3.new(0,0,0)
  21. txt.Text=""
  22. if trans == true then
  23. txt.TextColor3=Color3.new(255,0,0)
  24. txt.Font="Antique"
  25. coroutine.wrap(function()
  26. for i = 1,string.len(msg) do
  27. print(i)
  28. if speed>0 then
  29. wait(speed)
  30. else
  31. wait()
  32. txt.Text=txt.Text..msg:sub(i,i)
Advertisement
Add Comment
Please, Sign In to add comment