Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. PlayerGui = Player.PlayerGui
  3. Cam = workspace.CurrentCamera
  4. Backpack = Player.Backpack
  5. Character = Player.Character
  6. Humanoid = Character.Humanoid
  7. Mouse = Player:GetMouse()
  8. RootPart = Character["HumanoidRootPart"]
  9. Torso = Character["Torso"]
  10. Head = Character["Head"]
  11. RightArm = Character["Right Arm"]
  12. LeftArm = Character["Left Arm"]
  13. RightLeg = Character["Right Leg"]
  14. LeftLeg = Character["Left Leg"]
  15. RootJoint = RootPart["RootJoint"]
  16. Neck = Torso["Neck"]
  17. RightShoulder = Torso["Right Shoulder"]
  18. LeftShoulder = Torso["Left Shoulder"]
  19. RightHip = Torso["Right Hip"]
  20. LeftHip = Torso["Left Hip"]
  21. Humanoid.WalkSpeed = 0
  22. Humanoid.JumpPower = 0
  23. Humanoid.MaxHealth = "inf"
  24. Humanoid.Health = "inf"
  25. k = Instance.new("Sound",Character)
  26. k.Volume = 0.6
  27. k.PlaybackSpeed = 1
  28. k.Pitch = 1
  29. k.SoundId = "rbxassetid://381671754"
  30. k:Play()
  31. k.Name = "TalkSound"
  32. k.Playing = false
  33.  
  34. function chatfunc(text)
  35. local chat = coroutine.wrap(function()
  36. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  37. Character:FindFirstChild("TalkingBillBoard"):destroy()
  38. end
  39. local naeeym2 = Instance.new("BillboardGui",Character)
  40. naeeym2.Size = UDim2.new(0,100,0,40)
  41. naeeym2.StudsOffset = Vector3.new(0,8,0)
  42. naeeym2.Adornee = Character.Head
  43. naeeym2.Name = "TalkingBillBoard"
  44. naeeym2.AlwaysOnTop = true
  45. local tecks2 = Instance.new("TextLabel",naeeym2)
  46. tecks2.BackgroundTransparency = 1
  47. tecks2.BorderSizePixel = 0
  48. tecks2.Text = ""
  49. tecks2.Font = "Fantasy"
  50. tecks2.TextSize = 30
  51. tecks2.TextStrokeTransparency = 0
  52. tecks2.TextColor3 = Color3.new(0,0,0)
  53. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  54. tecks2.Size = UDim2.new(1,0,0.5,0)
  55. local tecks3 = Instance.new("TextLabel",naeeym2)
  56. tecks3.BackgroundTransparency = 1
  57. tecks3.BorderSizePixel = 0
  58. tecks3.Text = ""
  59. tecks3.Font = "Fantasy"
  60. tecks3.TextSize = 30
  61. tecks3.TextStrokeTransparency = 0
  62. tecks3.TextColor3 = Color3.new(0,0,0)
  63. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  64. tecks3.Size = UDim2.new(1,0,0.5,0)
  65. for i = 1,string.len(text),1 do
  66. k:Play()
  67. tecks2.Text = string.sub(text,1,i)
  68. tecks3.Text = string.sub(text,1,i)
  69. wait(0.01)
  70. end
  71. wait(2)
  72. for i = 1, 50 do
  73. wait()
  74. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  75. tecks2.Rotation = tecks2.Rotation - .8
  76. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  77. tecks2.TextTransparency = tecks2.TextTransparency + .04
  78. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  79. tecks3.Rotation = tecks2.Rotation + .8
  80. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  81. tecks3.TextTransparency = tecks2.TextTransparency + .04
  82. end
  83. naeeym2:Destroy()
  84. end)
  85. chat()
  86. end
  87. function onChatted(msg)
  88. chatfunc(msg)
  89. end
  90. Player.Chatted:connect(onChatted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement