Advertisement
iiMurpyh

Untitled

Oct 21st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. local Player = game.Players.localPlayer
  2. local Character = Player.Character
  3. local Humanoid = Character.Humanoid
  4. CFuncs = {
  5. ["Part"] = {
  6. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  7. local Part = Create("Part"){
  8. Parent = Parent,
  9. Reflectance = Reflectance,
  10. Transparency = Transparency,
  11. CanCollide = false,
  12. Locked = true,
  13. BrickColor = BrickColor.new(tostring(BColor)),
  14. Name = Name,
  15. Size = Size,
  16. Material = Material,
  17. }
  18. RemoveOutlines(Part)
  19. return Part
  20. end;
  21. };
  22.  
  23. ["Mesh"] = {
  24. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  25. local Msh = Create(Mesh){
  26. Parent = Part,
  27. Offset = OffSet,
  28. Scale = Scale,
  29. }
  30. if Mesh == "SpecialMesh" then
  31. Msh.MeshType = MeshType
  32. Msh.MeshId = MeshId
  33. end
  34. return Msh
  35. end;
  36. };
  37.  
  38. ["Mesh"] = {
  39. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  40. local Msh = Create(Mesh){
  41. Parent = Part,
  42. Offset = OffSet,
  43. Scale = Scale,
  44. }
  45. if Mesh == "SpecialMesh" then
  46. Msh.MeshType = MeshType
  47. Msh.MeshId = MeshId
  48. end
  49. return Msh
  50. end;
  51. };
  52.  
  53. ["Weld"] = {
  54. Create = function(Parent, Part0, Part1, C0, C1)
  55. local Weld = Create("Weld"){
  56. Parent = Parent,
  57. Part0 = Part0,
  58. Part1 = Part1,
  59. C0 = C0,
  60. C1 = C1,
  61. }
  62. return Weld
  63. end;
  64. };
  65.  
  66. ["Sound"] = {
  67. Create = function(id, par, vol, pit)
  68. coroutine.resume(coroutine.create(function()
  69. local S = Create("Sound"){
  70. Volume = vol,
  71. Pitch = pit or 1,
  72. SoundId = id,
  73. Parent = par or workspace,
  74. }
  75. wait()
  76. S:play()
  77. game:GetService("Debris"):AddItem(S, 6)
  78. end))
  79. end;
  80. };
  81. function chatfunc(text)
  82. local chat = coroutine.wrap(function()
  83. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  84. Character:FindFirstChild("TalkingBillBoard"):destroy()
  85. end
  86. local naeeym2 = Instance.new("BillboardGui",Character)
  87. naeeym2.Size = UDim2.new(0,100,0,40)
  88. naeeym2.StudsOffset = Vector3.new(0,3,0)
  89. naeeym2.Adornee = Character.Head
  90. naeeym2.Name = "TalkingBillBoard"
  91. local tecks2 = Instance.new("TextLabel",naeeym2)
  92. tecks2.BackgroundTransparency = 1
  93. tecks2.BorderSizePixel = 0
  94. tecks2.Text = ""
  95. tecks2.Font = "Arcade"
  96. tecks2.TextSize = 30
  97. tecks2.TextStrokeTransparency = 0
  98. tecks2.TextColor3 = Color3.new(1,1,0)
  99. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  100. tecks2.Size = UDim2.new(1,0,0.5,0)
  101. local tecks3 = Instance.new("TextLabel",naeeym2)
  102. tecks3.BackgroundTransparency = 1
  103. tecks3.BorderSizePixel = 0
  104. tecks3.Text = ""
  105. tecks3.Font = "Arcade"
  106. tecks3.TextSize = 30
  107. tecks3.TextStrokeTransparency = 0
  108. tecks3.TextColor3 = Color3.new(1,1,0)
  109. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  110. tecks3.Size = UDim2.new(1,0,0.5,0)
  111. for i = 1,string.len(text),1 do
  112. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=160718677", Character, .6, .8)
  113. tecks2.Text = string.sub(text,1,i)
  114. tecks3.Text = string.sub(text,1,i)
  115. wait(0.01)
  116. end
  117. wait(2)
  118. for i = 1, 50 do
  119. swait()
  120. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  121. tecks2.Rotation = tecks2.Rotation - .8
  122. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  123. tecks2.TextTransparency = tecks2.TextTransparency + .04
  124. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  125. tecks3.Rotation = tecks2.Rotation + .8
  126. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  127. tecks3.TextTransparency = tecks2.TextTransparency + .04
  128. end
  129. naeeym2:Destroy()
  130. end)
  131. chat()
  132. end
  133. function onChatted(msg)
  134. chatfunc(msg)
  135. end
  136. Player.Chatted:connect(onChatted)
  137.  
  138. abss = Instance.new("BillboardGui",Character)
  139. abss.Size = UDim2.new(10,0,10,0)
  140. abss.Enabled = false
  141. imgl = Instance.new("ImageLabel",abss)
  142. imgl.Position = UDim2.new(0,0,0,0)
  143. imgl.Size = UDim2.new(1,0,1,0)
  144. imgl.Image = "rbxassetid://711463989"
  145. imgl.BackgroundTransparency = 1
  146. imgl.ImageColor3 = Color3.new(.9,0,0)
  147. img2 = Instance.new("ImageLabel",abss)
  148. img2.Position = UDim2.new(0,0,0,0)
  149. img2.Size = UDim2.new(1,0,1,0)
  150. img2.Image = "rbxassetid://711463989"
  151. img2.BackgroundTransparency = 1
  152. img2.ImageColor3 = Color3.new(.9,0,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement