Advertisement
PR0J3CT11

Untitled

Aug 17th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local chatting = false
  2. local currentgui
  3. local currentline = 2
  4. BillboardGui0 = Instance.new("BillboardGui")
  5. Frame1 = Instance.new("Frame")
  6. Frame2 = Instance.new("Frame")
  7. ImageLabel3 = Instance.new("ImageLabel")
  8. TextLabel4 = Instance.new("TextLabel")
  9. TextLabel5 = Instance.new("TextLabel")
  10. BillboardGui0.Parent = mas
  11. BillboardGui0.Size = UDim2.new(15, 0, 4.5, 0)
  12. BillboardGui0.ClipsDescendants = true
  13. BillboardGui0.Adornee = nil
  14. BillboardGui0.AlwaysOnTop = true
  15. BillboardGui0.MaxDistance = 35
  16. BillboardGui0.SizeOffset = Vector2.new(0, 1)
  17. Frame1.Name = "White"
  18. Frame1.Parent = BillboardGui0
  19. Frame1.Size = UDim2.new(1, 0, 1, 0)
  20. Frame1.BackgroundColor = BrickColor.new("Institutional white")
  21. Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  22. Frame1.BorderSizePixel = 0
  23. Frame2.Name = "Black"
  24. Frame2.Parent = Frame1
  25. Frame2.Position = UDim2.new(0, 5, 0, 5)
  26. Frame2.Size = UDim2.new(1, -10, 1, -10)
  27. Frame2.BackgroundColor = BrickColor.new("Really black")
  28. Frame2.BackgroundColor3 = Color3.new(0, 0, 0)
  29. Frame2.BorderColor = BrickColor.new("Pastel violet")
  30. Frame2.BorderColor3 = Color3.new(0.588235, 0.588235, 1)
  31. Frame2.BorderSizePixel = 4
  32. ImageLabel3.Name = "Portrait"
  33. ImageLabel3.Parent = Frame2
  34. ImageLabel3.Position = UDim2.new(0.0195086356, 0, 0.0609827824, 0)
  35. ImageLabel3.Size = UDim2.new(0.227539942, 0, 0.870999992, 0)
  36. ImageLabel3.BackgroundColor = BrickColor.new("Institutional white")
  37. ImageLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  38. ImageLabel3.BackgroundTransparency = 9
  39. ImageLabel3.BorderSizePixel = 0
  40. ImageLabel3.Image = "rbxassetid://2634816264"
  41. TextLabel4.Name = "Shadow"
  42. TextLabel4.Parent = Frame2
  43. TextLabel4.Position = UDim2.new(0.277011365, 0, 0.0826922357, 0)
  44. TextLabel4.Size = UDim2.new(0.716000021, 0, 0.870999992, 0)
  45. TextLabel4.BackgroundColor = BrickColor.new("Really black")
  46. TextLabel4.BackgroundColor3 = Color3.new(0, 0, 0)
  47. TextLabel4.BackgroundTransparency = 9
  48. TextLabel4.Font = Enum.Font.Arcade
  49. TextLabel4.FontSize = Enum.FontSize.Size60
  50. TextLabel4.Text = "* "
  51. TextLabel4.TextColor = BrickColor.new("Medium lilac")
  52. TextLabel4.TextColor3 = Color3.new(0.215686, 0.215686, 0.392157)
  53. TextLabel4.TextSize = 50
  54. TextLabel4.TextTruncate = Enum.TextTruncate.AtEnd
  55. TextLabel4.TextWrap = true
  56. TextLabel4.TextWrapped = true
  57. TextLabel4.TextXAlignment = Enum.TextXAlignment.Left
  58. TextLabel5.Name = "Msg"
  59. TextLabel5.Parent = Frame2
  60. TextLabel5.Position = UDim2.new(0.275019109, 0, 0.0744685978, 0)
  61. TextLabel5.Size = UDim2.new(0.716000021, 0, 0.870531261, 0)
  62. TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
  63. TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
  64. TextLabel5.BackgroundTransparency = 9
  65. TextLabel5.Font = Enum.Font.Arcade
  66. TextLabel5.FontSize = Enum.FontSize.Size60
  67. TextLabel5.Text = "* "
  68. TextLabel5.TextColor = BrickColor.new("Institutional white")
  69. TextLabel5.TextColor3 = Color3.new(1, 1, 1)
  70. TextLabel5.TextSize = 50
  71. TextLabel5.TextTruncate = Enum.TextTruncate.AtEnd
  72. TextLabel5.TextWrap = true
  73. TextLabel5.TextWrapped = true
  74. TextLabel5.TextXAlignment = Enum.TextXAlignment.Left
  75. wait()
  76. function saymsg(player,mes,style)
  77. pcall(function()
  78. local gui = BillboardGui0:Clone()
  79. gui.Parent = player.Character:WaitForChild("Head")
  80. local white = gui:WaitForChild("White")
  81. local blk = white:WaitForChild("Black")
  82. local msg = blk:WaitForChild("Msg")
  83. local shd = blk:WaitForChild("Shadow")
  84. local img = blk:WaitForChild("Portrait")
  85. local ms
  86. if style == "normal" then
  87. img.Image = "rbxassetid://2634816264"
  88. elseif style == "happy" then
  89. img.Image = "rbxassetid://2634815127"
  90. elseif style == "angry" then
  91. img.Image = "rbxassetid://2634815763"
  92. elseif style == "blush" then
  93. img.Image = "rbxassetid://2634816040"
  94. elseif style == "sincere" then
  95. img.Image = "rbxassetid://2634814819"
  96. elseif style == "sarcasm" then
  97. img.Image = "rbxassetid://2634815417"
  98. end
  99.  
  100. ms = "* "..mes
  101.  
  102. if string.len(ms) > 25 then
  103. msg.TextYAlignment = Enum.TextYAlignment.Top
  104. shd.TextYAlignment = Enum.TextYAlignment.Top
  105. end
  106. if string.len(ms) > 58 then
  107. msg.TextSize = 40
  108. shd.TextSize = 40
  109. end
  110. if string.len(ms) > 108 then
  111. msg.TextSize = 30
  112. shd.TextSize = 30
  113. end
  114.  
  115. white.Visible = true
  116. local sound = Instance.new("Sound")
  117. sound.SoundId = "rbxassetid://2633343843"
  118. sound.Volume = 1
  119. sound.Looped = false
  120. sound.Parent = player.Character
  121. for i = 1, #ms do
  122. msg.Text = string.sub(ms, 1, i)
  123. shd.Text = string.sub(ms, 1, i)
  124. if string.sub(msg.Text, string.len(msg.Text) - 1) ~= " " and string.sub(msg.Text, string.len(msg.Text) - 1) ~= "," and string.sub(msg.Text, string.len(msg.Text) - 1) ~= "." then
  125. if not sound then
  126. local sound = Instance.new("Sound")
  127. sound.SoundId = "rbxassetid://2633343843"
  128. sound.Volume = 1
  129. sound.Looped = false
  130. sound.Parent = player.Character
  131. end
  132. sound:Play()
  133. elseif string.sub(msg.Text, string.len(msg.Text) - 1) == "," or string.sub(msg.Text, string.len(msg.Text) - 1) == "." then
  134. wait(0.26)
  135. end
  136. wait(0.1)
  137. end
  138. wait(3)
  139. gui:Remove()
  140. end)
  141. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement