TheUnknownDiscord

Text to Speech

Nov 9th, 2021 (edited)
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. function the()
  2. H = Instance.new("Sound",owner.Character.Head)
  3. H.SoundId = "rbxassetid://203398397"
  4. H.Volume = 4
  5. E = Instance.new("Sound",owner.Character.Head)
  6. E.SoundId = "rbxassetid://203398314"
  7. E.Volume = 4
  8. L = Instance.new("Sound",owner.Character.Head)
  9. L.SoundId = "rbxassetid://223782961"
  10. L.Volume = 4
  11. P = Instance.new("Sound",owner.Character.Head)
  12. P.SoundId = "rbxassetid://203398727"
  13. P.Volume = 4
  14. I = Instance.new("Sound",owner.Character.Head)
  15. I.SoundId = "rbxassetid://203398422"
  16. I.Volume = 6
  17. M = Instance.new("Sound",owner.Character.Head)
  18. M.SoundId = "rbxassetid://203398578"
  19. M.Volume = 6
  20. M.PlaybackSpeed = 1.125
  21. A = Instance.new("Sound",owner.Character.Head)
  22. A.SoundId = "rbxassetid://203343932"
  23. A.Volume = 4
  24. S = Instance.new("Sound",owner.Character.Head)
  25. S.SoundId = "rbxassetid://203398806"
  26. S.Volume = 4
  27. B = Instance.new("Sound",owner.Character.Head)
  28. B.SoundId = "rbxassetid://203344029"
  29. B.Volume = 4
  30. X = Instance.new("Sound",owner.Character.Head)
  31. X.SoundId = "rbxassetid://203399008"
  32. X.Volume = 4
  33. Y = Instance.new("Sound",owner.Character.Head)
  34. Y.SoundId = "rbxassetid://203399043"
  35. Y.Volume = 6
  36. Z = Instance.new("Sound",owner.Character.Head)
  37. Z.SoundId = "rbxassetid://203399096"
  38. Z.Volume = 4
  39. C = Instance.new("Sound",owner.Character.Head)
  40. C.SoundId = "rbxassetid://203592149"
  41. C.Volume = 4
  42. D = Instance.new("Sound",owner.Character.Head)
  43. D.SoundId = "rbxassetid://203398237"
  44. D.Volume = 4
  45. F = Instance.new("Sound",owner.Character.Head)
  46. F.SoundId = "rbxassetid://203398347"
  47. F.Volume = 4
  48. G = Instance.new("Sound",owner.Character.Head)
  49. G.SoundId = "rbxassetid://203398372"
  50. G.Volume = 4
  51. U = Instance.new("Sound",owner.Character.Head)
  52. U.SoundId = "rbxassetid://203398897"
  53. U.Volume = 4
  54. W = Instance.new("Sound",owner.Character.Head)
  55. W.SoundId = "rbxassetid://20339898"
  56. W.Volume = 4
  57. R= Instance.new("Sound",owner.Character.Head)
  58. R.SoundId = "rbxassetid://203398792"
  59. R.Volume = 4
  60. S= Instance.new("Sound",owner.Character.Head)
  61. S.SoundId = "rbxassetid://203398806"
  62. S.Volume = 4
  63. Q = Instance.new("Sound",owner.Character.Head)
  64. Q.SoundId = "rbxassetid://203398755"
  65. Q.Volume = 4
  66. J = Instance.new("Sound",owner.Character.Head)
  67. J.SoundId = "rbxassetid://203398450"
  68. J.Volume = 4
  69. O = Instance.new("Sound",owner.Character.Head)
  70. O.SoundId = "rbxassetid://203398619"
  71. O.Volume = 4
  72. K = Instance.new("Sound",owner.Character.Head)
  73. K.SoundId = "rbxassetid://203343994"
  74. K.Volume = 4
  75. N = Instance.new("Sound",owner.Character.Head)
  76. N.SoundId = "rbxassetid://203398599"
  77. N.Volume = 6
  78. N.PlaybackSpeed = 1.125
  79. T = Instance.new("Sound",owner.Character.Head)
  80. T.SoundId = "rbxassetid://203398850"
  81. T.Volume = 4
  82. V = Instance.new("Sound",owner.Character.Head)
  83. V.SoundId = "rbxassetid://203398965"
  84. V.Volume = 6
  85. owner.Chatted:Connect(function(Text)
  86. for Letter in string.gmatch(Text, ".") do
  87. if string.lower(Letter) == "h" then
  88. H:Play()
  89. wait(0.5)
  90. H:Stop()
  91. elseif string.lower(Letter) == "e" then
  92. E:Play()
  93. wait(0.5)
  94. E:Stop()
  95. elseif string.lower(Letter) == "l" then
  96. L:Play()
  97. wait(0.5)
  98. L:Stop()
  99. elseif string.lower(Letter) == "o" then
  100. O:Play()
  101. wait(0.5)
  102. O:Stop()
  103. elseif string.lower(Letter) == "p" then
  104. P:Play()
  105. wait(0.5)
  106. P:Stop()
  107. elseif string.lower(Letter) == "i" then
  108. I:Play()
  109. wait(0.5)
  110. I:Stop()
  111. elseif string.lower(Letter) == "m" then
  112. M:Play()
  113. wait(0.5)
  114. M:Stop()
  115. elseif string.lower(Letter) == "a" then
  116. A:Play()
  117. wait(0.5)
  118. A:Stop()
  119. elseif string.lower(Letter) == "v" then
  120. V:Play()
  121. wait(0.5)
  122. V:Stop()
  123. elseif string.lower(Letter) == "t" then
  124. T:Play()
  125. wait(0.5)
  126. T:Stop()
  127. elseif string.lower(Letter) == "b" then
  128. B:Play()
  129. wait(0.5)
  130. B:Stop()
  131. elseif string.lower(Letter) == "c" then
  132. C:Play()
  133. wait(0.5)
  134. C:Stop()
  135. elseif string.lower(Letter) == "d" then
  136. D:Play()
  137. wait(0.5)
  138. D:Stop()
  139. elseif string.lower(Letter) == "f" then
  140. F:Play()
  141. wait(0.5)
  142. F:Stop()
  143. elseif string.lower(Letter) == "g" then
  144. G:Play()
  145. wait(0.5)
  146. G:Stop()
  147. elseif string.lower(Letter) == "j" then
  148. J:Play()
  149. wait(0.5)
  150. J:Stop()
  151. elseif string.lower(Letter) == "k" then
  152. K:Play()
  153. wait(0.5)
  154. K:Stop()
  155. elseif string.lower(Letter) == "n" then
  156. N:Play()
  157. wait(0.5)
  158. N:Stop()
  159. elseif string.lower(Letter) == "q" then
  160. Q:Play()
  161. wait(0.5)
  162. Q:Stop()
  163. elseif string.lower(Letter) == "r" then
  164. R:Play()
  165. wait(0.5)
  166. R:Stop()
  167. elseif string.lower(Letter) == "s" then
  168. S:Play()
  169. wait(0.5)
  170. S:Stop()
  171. elseif string.lower(Letter) == "u" then
  172. U:Play()
  173. wait(0.5)
  174. U:Stop()
  175. elseif string.lower(Letter) == "w" then
  176. W:Play()
  177. wait(0.5)
  178. W:Stop()
  179. elseif string.lower(Letter) == "x" then
  180. X:Play()
  181. wait(0.5)
  182. X:Stop()
  183. elseif string.lower(Letter) == "y" then
  184. Y:Play()
  185. wait(0.5)
  186. Y:Stop()
  187. elseif string.lower(Letter) == "z" then
  188. Z:Play()
  189. wait(0.5)
  190. Z:Stop()
  191. elseif string.lower(Letter) == "," or string.lower(Letter) == "." or string.lower(Letter) == "?" or string.lower(Letter) == "!" or string.lower(Letter) == " " then
  192. wait(0.85)
  193. elseif Letter == "0" then
  194. Z:Play()
  195. wait(0.5)
  196. Z:Stop()
  197. E:Play()
  198. wait(0.5)
  199. E:Stop()
  200. R:Play()
  201. wait(0.5)
  202. R:Stop()
  203. O:Play()
  204. wait(0.5)
  205. O:Stop()
  206. end
  207. end
  208. end)
  209. end
  210. owner.CharacterAdded:Connect(the)
  211. the()
Add Comment
Please, Sign In to add comment