HuyEvilDumb

Untitled

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