reset234567890

Text Void SB Label

Apr 2nd, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. --Chat Function--
  2. function chatfunc(text)
  3. local chat = coroutine.wrap(function()
  4. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  5. chara:FindFirstChild("TalkingBillBoard"):destroy()
  6. end
  7. local naeeym2 = Instance.new("BillboardGui",chara)
  8. naeeym2.Size = UDim2.new(0,100,0,40)
  9. naeeym2.StudsOffset = Vector3.new(0,3,0)
  10. naeeym2.Adornee = chara.Head
  11. naeeym2.Name = "TalkingBillBoard"
  12. local tecks2 = Instance.new("TextLabel",naeeym2)
  13. tecks2.BackgroundTransparency = 1
  14. tecks2.BorderSizePixel = 0
  15. tecks2.Text = ""
  16. tecks2.Font = "Fantasy"
  17. tecks2.FontSize = "Size24"
  18. tecks2.TextStrokeTransparency = 0
  19. tecks2.TextColor3 = Color3.new(1,1,1)
  20. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  21. tecks2.Size = UDim2.new(1,0,0.5,0)
  22. for i = 1,string.len(text),1 do
  23. PlaySnd(ChatSnd,chara)
  24. tecks2.Text = string.sub(text,1,i)
  25. wait(0.01)
  26. end
  27. wait(1)
  28. for i = 1, 5 do
  29. wait(.01)
  30. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  31. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  32. tecks2.TextTransparency = tecks2.TextTransparency + .2
  33. end
  34. naeeym2:Destroy()
  35. end)
  36. chat()
  37. end
Advertisement
Add Comment
Please, Sign In to add comment