Advertisement
lafur

Untitled

Mar 14th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. Player.Chatted:connect(function(msg)
  2. chatfunc(msg)
  3. end)
  4. function chatfunc(text)
  5. local chat = coroutine.wrap(function()
  6. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  7. Character:FindFirstChild("TalkingBillBoard"):destroy()
  8. end
  9. local Bill = Instance.new("BillboardGui",Character)
  10. Bill.Size = UDim2.new(0,100,0,40)
  11. Bill.StudsOffset = Vector3.new(0,3,0)
  12. Bill.Adornee = Character.Head
  13. Bill.Name = "TalkingBillBoard"
  14. local Hehe = Instance.new("TextLabel",Bill)
  15. Hehe.BackgroundTransparency = 1
  16. Hehe.BorderSizePixel = 0
  17. Hehe.Text = ""
  18. Hehe.Font = "Bodoni"
  19. Hehe.TextSize = 40
  20. Hehe.TextStrokeTransparency = 0
  21. Hehe.Size = UDim2.new(1,0,0.5,0)
  22. coroutine.resume(coroutine.create(function()
  23. while Hehe ~= nil do
  24. Swait()
  25. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  26. Hehe.Rotation = math.random(-2.5,2.5)
  27. Hehe.TextColor3 = Color3.fromRGB(98, 37, 209)
  28. Hehe.TextStrokeColor3 = Color3.fromRGB(98, 37, 209)
  29. end
  30. end))
  31. for i = 1,string.len(text),1 do
  32. Swait()
  33. Hehe.Text = string.sub(text,1,i)
  34. end
  35. Swait(90)--Re[math.random(1, 93)]
  36. for i = 0, 1, .025 do
  37. Swait()
  38. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  39. Hehe.TextStrokeTransparency = i
  40. Hehe.TextTransparency = i
  41. end
  42. Bill:Destroy()
  43. end)
  44. chat()
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement