TheUnknownDiscord

chat

Nov 29th, 2021 (edited)
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. sweat = false
  2. sus = false
  3. happy = true
  4. mad = false
  5. sad = false
  6. local clickSound = Instance.new("Sound", owner.Character.Head)
  7. clickSound.Volume = 2
  8. clickSound.SoundId = "rbxassetid://7684434684"
  9. local music = Instance.new("Sound", owner.Character.Head)
  10. music.SoundId = "rbxassetid://"
  11. music.Volume = 1
  12. music.Looped = true
  13. music:Play()
  14. owner.Chatted:Connect(function(msg)
  15. if clickSound.Parent ~= owner.Character.Head and clickSound.Parent ~= NULL then
  16. clickSound.Parent = owner.Character.Head
  17. else
  18. clickSound = Instance.new("Sound", owner.Character.Head)
  19. clickSound.Volume = 2
  20. clickSound.SoundId = "rbxassetid://7684434684"
  21. end
  22. if music.Parent ~= owner.Character.Head and music.Parent ~= NULL then
  23. music.Parent = owner.Character.Head
  24. else
  25. music = Instance.new("Sound", owner.Character.Head)
  26. music.SoundId = "rbxassetid://"
  27. music.Volume = 1
  28. music.Looped = true
  29. music:Play()
  30. end
  31. if string.lower(msg) == "/e sweat" then
  32. sweat = true
  33. sus = false
  34. happy = false
  35. mad = false
  36. sad = false
  37. elseif string.lower(msg) == "/e happy" then
  38. sweat = false
  39. sus = false
  40. happy = true
  41. mad = false
  42. sad = false
  43. elseif string.lower(msg) == "/e sus" then
  44. sweat = false
  45. sus = true
  46. happy = false
  47. mad = false
  48. sad = false
  49. elseif string.lower(msg) == "/e mad" then
  50. sweat = false
  51. sus = false
  52. happy = false
  53. mad = true
  54. sad = false
  55. elseif string.lower(msg) == "/e sad" then
  56. sweat = false
  57. sus = false
  58. happy = false
  59. mad = false
  60. sad = true
  61. end
  62. if string.lower(msg) ~= "/e sus" then
  63. if string.lower(msg) ~= "/e happy" then
  64. if string.lower(msg) ~= "/e sweat" then
  65. if string.lower(msg) ~= "/e sad" then
  66. if string.lower(msg) ~= "/e mad" then
  67. if string.lower(msg:sub(1,8)) ~= "/e play " then
  68. local billboard = Instance.new("BillboardGui", owner.character.Head)
  69. billboard.Adornee = owner.character.Head
  70. billboard.StudsOffset = Vector3.new(0, 3.5, 0)
  71. billboard.Size = UDim2.new(18,0,3,0)
  72. billboard.Name = "chat"
  73. billboard.MaxDistance = 50
  74. local tb3 = Instance.new("TextBox", billboard)
  75. tb3.Size = UDim2.new(1,0,1,0)
  76. local frame = Instance.new("ImageLabel", billboard)
  77. frame.BackgroundTransparency = 1
  78. if sweat then
  79. frame.Image = "http://www.roblox.com/asset/?id=8135544462"
  80. elseif sus then
  81. frame.Image = "http://www.roblox.com/asset/?id=8137468091"
  82. elseif happy then
  83. frame.Image = "http://www.roblox.com/asset/?id=8137461397"
  84. elseif mad then
  85. frame.Image = "http://www.roblox.com/asset/?id=8137464880"
  86. elseif sad then
  87. frame.Image = "http://www.roblox.com/asset/?id=8137466899"
  88. end
  89. frame.Size = UDim2.new(0.125,0,1,0)
  90. local tb = Instance.new("TextBox", billboard)
  91. tb.Size = UDim2.new(1,0,1,0)
  92. tb.Position = UDim2.new(0.15,0,0,0)
  93. tb.TextSize = 25
  94. tb3.BackgroundColor3 = BrickColor.new("Really black").Color
  95. tb.TextColor = BrickColor.new("Institutional white")
  96. tb.Font = "GothamSemibold"
  97. local tb2 = Instance.new("TextBox", billboard)
  98. tb2.Size = UDim2.new(50,0,50,0)
  99. tb2.TextSize = 50
  100. tb2.Position = UDim2.new(0.15,0,-0.125,0)
  101. tb2.TextColor = BrickColor.new("Institutional white")
  102. tb2.BackgroundTransparency = 1
  103. tb3.Text = ""
  104. tb2.Font = "Arcade"
  105. tb2.TextXAlignment = 'Left'
  106. tb2.TextWrapped = true
  107. tb2.TextYAlignment = 'Top'
  108. tb3.BorderColor3 = BrickColor.new("Institutional white").Color
  109. tb3.BorderSizePixel = 2
  110. tb.TextXAlignment = 'Left'
  111. tb.TextWrapped = true
  112. tb.TextYAlignment = 'Top'
  113. tb.Name = 'Box'
  114. tb3.BackgroundTransparency = 0
  115. tb.BackgroundTransparency = 1
  116. tb3.ClearTextOnFocus = false
  117. tb.TextTransparency = 0
  118. tb.TextEditable = false
  119. tb.Text = msg
  120. tb2.Text = "*"
  121. for i = 1, #msg do
  122. tb.Text = " "..string.sub(msg,1,i)
  123. clickSound.PlaybackSpeed = math.random(100, 115)/100
  124. wait(0.125)
  125. clickSound:Play()
  126. end
  127. tb.Text = " "..msg
  128. wait(5)
  129. billboard:Destroy()
  130. end
  131. end
  132. end
  133. end
  134. end
  135. end
  136. end)
  137. owner.Chatted:Connect(function(msg)
  138. if string.lower(msg:sub(1,8)) == "/e play " then
  139. music:Stop()
  140. music.SoundId = "http://www.roblox.com/asset/?id="..msg:sub(8)
  141. music:Play()
  142. end
  143. end)
Add Comment
Please, Sign In to add comment