Advertisement
Mr-Shadow_Cat

Chat i think

Nov 26th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. function chat(...)
  2. local txxt = {...}
  3. local ch = coroutine.wrap(function()
  4. if chara:FindFirstChild("Chatt")~= nil then
  5. Character:FindFirstChild("Chatt"):destroy()
  6. end
  7. local txt = Instance.new("BillboardGui", chara)
  8. txt.Adornee = chara.Head
  9. txt.Name = "Chatt"
  10. txt.Size = UDim2.new(2, 0, 1.2, 0)
  11. txt.StudsOffset = Vector3.new(-9, 7, 0)
  12. local text = Instance.new("TextLabel", txt)
  13. text.Size = UDim2.new(10, 0, 7, 0)
  14. text.TextSize = 24
  15. text.Font = Enum.Font.Cartoon
  16. text.TextScaled = false
  17. text.BackgroundTransparency = 1
  18. text.TextColor3 = Color3.new(0,0,0)
  19. text.TextStrokeTransparency = 0
  20. text.TextStrokeColor3 = Color3.new(1,0,0)
  21. text.Text = ""
  22. txxt = table.concat(txxt,"\t")
  23. for i = 1, #txxt do
  24. text.Text = txxt:sub(1,i)
  25. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=565939471", Character, .6, .8)
  26. wait()
  27. end
  28. wait(2)
  29. for trans = 0,1,.1 do
  30. text.TextTransparency = trans
  31. text.TextStrokeTransparency = trans
  32. wait()
  33. end
  34. wait()
  35. txt:destroy()
  36. end)
  37.  
  38. ch(...)
  39. end
  40. Player.Chatted:connect(chat)
  41. CFuncs = {
  42. ["Part"] = {
  43. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  44. local Part = Create("Part"){
  45. Parent = Parent,
  46. Reflectance = Reflectance,
  47. Transparency = Transparency,
  48. CanCollide = false,
  49. Locked = true,
  50. BrickColor = BrickColor.new(tostring(BColor)),
  51. Name = Name,
  52. Size = Size,
  53. Material = Material,
  54. }
  55. RemoveOutlines(Part)
  56. return Part
  57. end;
  58. };
  59.  
  60. ["Mesh"] = {
  61. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  62. local Msh = Create(Mesh){
  63. Parent = Part,
  64. Offset = OffSet,
  65. Scale = Scale,
  66. }
  67. if Mesh == "SpecialMesh" then
  68. Msh.MeshType = MeshType
  69. Msh.MeshId = MeshId
  70. end
  71. return Msh
  72. end;
  73. };
  74.  
  75. ["Mesh"] = {
  76. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  77. local Msh = Create(Mesh){
  78. Parent = Part,
  79. Offset = OffSet,
  80. Scale = Scale,
  81. }
  82. if Mesh == "SpecialMesh" then
  83. Msh.MeshType = MeshType
  84. Msh.MeshId = MeshId
  85. end
  86. return Msh
  87. end;
  88. };
  89.  
  90. ["Weld"] = {
  91. Create = function(Parent, Part0, Part1, C0, C1)
  92. local Weld = Create("Weld"){
  93. Parent = Parent,
  94. Part0 = Part0,
  95. Part1 = Part1,
  96. C0 = C0,
  97. C1 = C1,
  98. }
  99. return Weld
  100. end;
  101. };
  102.  
  103. ["Sound"] = {
  104. Create = function(id, par, vol, pit)
  105. coroutine.resume(coroutine.create(function()
  106. local S = Create("Sound"){
  107. Volume = vol,
  108. Pitch = pit or 1,
  109. SoundId = id,
  110. Parent = par or workspace,
  111. }
  112. wait()
  113. S:play()
  114. game:GetService("Debris"):AddItem(S, 6)
  115. end))
  116. end;
  117. };
  118.  
  119. ["ParticleEmitter"] = {
  120. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  121. local fp = Create("ParticleEmitter"){
  122. Parent = Parent,
  123. Color = ColorSequence.new(Color1, Color2),
  124. LightEmission = LightEmission,
  125. Size = Size,
  126. Texture = Texture,
  127. Transparency = Transparency,
  128. ZOffset = ZOffset,
  129. Acceleration = Accel,
  130. Drag = Drag,
  131. LockedToPart = LockedToPart,
  132. VelocityInheritance = VelocityInheritance,
  133. EmissionDirection = EmissionDirection,
  134. Enabled = Enabled,
  135. Lifetime = LifeTime,
  136. Rate = Rate,
  137. Rotation = Rotation,
  138. RotSpeed = RotSpeed,
  139. Speed = Speed,
  140. VelocitySpread = VelocitySpread,
  141. }
  142. return fp
  143. end;
  144. };
  145.  
  146. CreateTemplate = {
  147.  
  148. };
  149. }
  150.  
  151. function rayCast(Position, Direction, Range, Ignore)
  152. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  153. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement