Advertisement
Insanity2021

test

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