thatonepuggo

bubble chat thingy

Aug 15th, 2020 (edited)
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. autotheme = "classic"; -- type >styles in game with the setting below set to "true" to view the styles [not done]
  2. themechangable = true;
  3.  
  4. local style = autotheme
  5. owner.Chatted:Connect(function(msg,rec)
  6. local lowerm = msg:lower()
  7. local splitm = lowerm:split(" ")
  8. local str = game.Chat:FilterStringForBroadcast(msg,owner)
  9. if style == "typer" then
  10. local function talkr(txtobj,text)
  11. for i=1,#text,1 do
  12. txtobj.Text = string.sub(text,1,i)
  13. local blip = Instance.new("Sound",txtobj.Parent.Parent)
  14. blip.SoundId = "rbxassetid://131238032"
  15. blip:Play()
  16. delay(.5,function()
  17. blip:Destroy()
  18. end)
  19. wait()
  20. end
  21. end
  22.  
  23. local BillboardGui0 = Instance.new("BillboardGui")
  24. local TextLabel1 = Instance.new("TextLabel")
  25. BillboardGui0.Name = "b"
  26. BillboardGui0.Parent = owner.Character.Head
  27. BillboardGui0.Enabled = true
  28. BillboardGui0.Size = UDim2.new(7, 0, 1, 0)
  29. BillboardGui0.Active = true
  30. BillboardGui0.ClipsDescendants = true
  31. BillboardGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  32. BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
  33. TextLabel1.Name = "t"
  34. TextLabel1.Parent = BillboardGui0
  35. TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  36. TextLabel1.BackgroundColor = BrickColor.new("Institutional white")
  37. TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  38. TextLabel1.BackgroundTransparency = 1
  39. TextLabel1.Font = Enum.Font.Arcade
  40. TextLabel1.FontSize = Enum.FontSize.Size14
  41. TextLabel1.TextColor = BrickColor.new("Hot pink")
  42. TextLabel1.TextColor3 = Color3.new(1, 0, 0.984314)
  43. TextLabel1.TextScaled = true
  44. TextLabel1.TextSize = 14
  45. TextLabel1.TextStrokeTransparency = 0
  46. TextLabel1.TextWrap = true
  47. TextLabel1.TextWrapped = true
  48. talkr(TextLabel1,str)
  49. wait(2)
  50. local ts = game:GetService("TweenService")
  51. local info = TweenInfo.new(2,Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut,0,false,0)
  52. local goals = {TextTransparency = 1, TextStrokeTransparency = 1}
  53. local anim1 = ts:Create(TextLabel1,info,goals)
  54. anim1:Play()
  55. wait(2)
  56. BillboardGui0:Destroy()
  57. elseif style == "classic" then
  58. game.Chat:Chat(owner.Character,str,Enum.ChatColor.White)
  59. end
  60. if splitm[1] == ">style" then
  61. if themechangable then
  62. if splitm[2] == "typer" then
  63. style = "typer"
  64. elseif splitm[2] == "classic" then
  65. style = "classic"
  66. end
  67. end
  68. end
  69. end)
Add Comment
Please, Sign In to add comment