Advertisement
DrakerMaker

Typewriter thingy wip

Nov 21st, 2020
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. local BillboardGui = Instance.new("BillboardGui")
  2. local Frame = Instance.new("Frame")
  3. local Text = Instance.new("TextBox")
  4. BillboardGui.MaxDistance = 50
  5. BillboardGui.Name = "Type"
  6. BillboardGui.Parent = owner.Character.Head
  7. BillboardGui.Active = true
  8. BillboardGui.Size = UDim2.new(15.5, 0, 15, 0)
  9. BillboardGui.StudsOffset = Vector3.new(0, 6, 0)
  10.  
  11. Frame.Name = "Framer"
  12. Frame.Parent = BillboardGui
  13. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  14. Frame.BackgroundTransparency = 1
  15. Frame.BorderSizePixel = 0
  16. Frame.Position = UDim2.new(0.209999993, 0, 0.209999993, 0)
  17. Frame.Selectable = true
  18. Frame.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
  19.  
  20. Text.Name = "Labeler"
  21. Text.Parent = Frame
  22. Text.BackgroundColor3 = Color3.new(0, 0, 0)
  23. Text.BackgroundTransparency = 1
  24. Text.BorderColor3 = Color3.new(0, 0, 0)
  25. Text.Position = UDim2.new(0.200000003, 0, 0.150000006, 0)
  26. Text.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
  27. Text.ClearTextOnFocus = false
  28. Text.Text = "1 bobux"
  29. Text.TextColor3 = Color3.new(255, 255, 255)
  30. Text.TextSize = 100
  31. Text.TextScaled = true
  32. Text.Font = "Arcade"
  33. soundid = "rbxassetid://1313873191"
  34. local A = Instance.new("Sound", owner.Character.Head)
  35. local B = Instance.new("Sound", owner.Character.Head)
  36. local C = Instance.new("Sound", owner.Character.Head)
  37. local Exclaim = Instance.new("Sound", owner.Character.Head)
  38. Exclaim.SoundId = "rbxassetid://2792106439"
  39. Exclaim.Volume = 3
  40. local Question = Instance.new("Sound", owner.Character.Head)
  41. Question.SoundId = "rbxassetid://1848278719"
  42. Question.Volume = 3
  43. local Huh = Instance.new("Sound", owner.Character.Head)
  44. Huh.SoundId = "rbxassetid://1842068241"
  45. Huh.Volume = 3
  46. A.SoundId = soundid
  47. A.Volume = 1
  48. B.SoundId = soundid
  49. B.Volume = 1
  50. C.SoundId = soundid
  51. C.Volume = 1
  52. owner.Chatted:connect(function(m)
  53. local length = string.len(m)
  54. local l = 0
  55. local stringo = ""
  56. local letter
  57. local hasexcl = 0
  58. local hasques = 0
  59. local match = string.match(m, "!")
  60. if match == "!" then
  61. Exclaim:Play()
  62. hasexcl = 1
  63. end
  64. match = string.match(m, "?")
  65. if match == "?" then
  66. Question:Play()
  67. hasques = 1
  68. end
  69. for i = 1, length do
  70. wait()
  71. l = l +1
  72. letter = string.sub(m, l,l)
  73. stringo = stringo..letter
  74. Text.Text = stringo
  75. local D = math.random(1,3)
  76. if D == 1 then
  77. A:Play()
  78. A.PlaybackSpeed = math.random(1,2)
  79. end
  80. if D == 2 then
  81. B:Play()
  82. B.PlaybackSpeed = math.random(1,2)
  83. end
  84. if D == 3 then
  85. C:Play()
  86. C.PlaybackSpeed = math.random(1,2)
  87. end
  88. end
  89. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement