Advertisement
ItzPartapika

CustomChat

Mar 24th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. local Player = game.Players.localPlayer
  2. local Character = Player.Character
  3. -- Cut
  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 naeeym2 = Instance.new("BillboardGui",Character)
  10. naeeym2.Size = UDim2.new(0,100,0,40)
  11. naeeym2.StudsOffset = Vector3.new(0,3,0)
  12. naeeym2.Adornee = Character.Head
  13. naeeym2.Name = "TalkingBillBoard"
  14. local tecks2 = Instance.new("TextLabel",naeeym2)
  15. tecks2.BackgroundTransparency = 1
  16. tecks2.BorderSizePixel = 0
  17. tecks2.Text = ""
  18. tecks2.Font = "Fantasy"
  19. tecks2.TextSize = 30
  20. tecks2.TextStrokeTransparency = 0
  21. tecks2.TextColor3 = Color3.new(.6,0,0)
  22. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  23. tecks2.Size = UDim2.new(1,0,0.5,0)
  24. local tecks3 = Instance.new("TextLabel",naeeym2)
  25. tecks3.BackgroundTransparency = 1
  26. tecks3.BorderSizePixel = 0
  27. tecks3.Text = ""
  28. tecks3.Font = "Fantasy"
  29. tecks3.TextSize = 30
  30. tecks3.TextStrokeTransparency = 0
  31. tecks3.TextColor3 = Color3.new(.6,0,0)
  32. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  33. tecks3.Size = UDim2.new(1,0,0.5,0)
  34. for i = 1,string.len(text),1 do
  35. tecks2.Text = string.sub(text,1,i)
  36. tecks3.Text = string.sub(text,1,i)
  37. wait(0.01)
  38. end
  39. wait(2)
  40. for i = 1, 50 do
  41. swait()
  42. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  43. tecks2.Rotation = tecks2.Rotation - .8
  44. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  45. tecks2.TextTransparency = tecks2.TextTransparency + .04
  46. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  47. tecks3.Rotation = tecks2.Rotation + .8
  48. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  49. tecks3.TextTransparency = tecks2.TextTransparency + .04
  50. end
  51. naeeym2:Destroy()
  52. end)
  53. chat()
  54. end
  55. function onChatted(msg)
  56. chatfunc(msg)
  57. end
  58. Player.Chatted:connect(onChatted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement