Advertisement
janana321

Untitled

Aug 30th, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.69 KB | None | 0 0
  1.  
  2. Sounds = {{"http://www.roblox.com/asset/?id=2767090", "Abscond", 0.8},
  3. {"http://www.roblox.com/asset/?id=2676305", "Berserk"},
  4. {"http://www.roblox.com/asset/?id=3264793", "Break"},
  5. {"http://www.roblox.com/asset/?id=13775494", "Curse"},
  6. {"http://www.roblox.com/asset/?id=2101137", "DBC"},
  7. {"http://www.roblox.com/asset/?id=2691586", "DBExplode"},
  8. {"http://www.roblox.com/asset/?id=2801263", "DCHHit"},
  9. {"http://www.roblox.com/asset/?id=2691586", "DS"},
  10. {"http://www.roblox.com/asset/?id=2101148", "DSHit"},
  11. {"http://www.roblox.com/asset/?id=3264923", "Defile"},
  12. {"http://www.roblox.com/asset/?id=2800815", "Electricity"},
  13. {"http://www.roblox.com/asset?id=1369158", "Blast1"},
  14. {"http://www.roblox.com/asset/?id=2974000", "Blast2"},
  15. {"http://www.roblox.com/asset/?id=12222124", "Blast3"},
  16. {"http://www.roblox.com/asset/?id=2974249", "Blast4"},
  17. {"http://www.roblox.com/asset/?id=2785493", "Imbue"},
  18. {"rbxasset://sounds//unsheath.wav", "UnSheath"},
  19. {"rbxasset://sounds//swordslash.wav", "SlashSound"},
  20. {"http://www.roblox.com/asset/?id=2692844", "Chaingun Charge"},
  21. {"http://www.roblox.com/asset/?id=12222095", "Rocket sound"},
  22. {"http://www.roblox.com/asset/?id=2920959", "Fire (lolwut)"},
  23. {"http://www.roblox.com/asset/?id=2691591", "Reload"},
  24. {"http://www.roblox.com/asset/?id=2697295", "Bullet rel"},
  25. {"http://www.roblox.com/asset/?id=13510737", "EquipSound (?)"},
  26. {"http://www.roblox.com/asset/?id=2760979", "Fire"},
  27. {"http://www.roblox.com/asset/?id=1868836", "Fire2"},
  28. {"http://www.roblox.com/asset/?id=2761841", "Fire3"},
  29. {"http://www.roblox.com/asset/?id=2692806", "Fire4"},
  30. {"http://www.roblox.com/asset/?id=11900833", "Fire5"},
  31. {"http://www.roblox.com/asset/?id=12222065", "Fire6"},
  32. {"http://www.roblox.com/asset/?id=2767090", "Fire7"},
  33. {"http://www.roblox.com/asset/?id=2693346", "Fire8"},
  34. {"http://www.roblox.com/asset/?id=15933756", "Fire9"},
  35. {"http://www.roblox.com/asset/?id=16976189", "Fire10"},
  36. {"http://www.roblox.com/asset/?id=21433711", "Fire11"},
  37. {"http://www.roblox.com/asset/?id=21433696", "Fire12"},
  38. {"http://www.roblox.com/asset/?id=13510352", "Fire13"},
  39. {"rbxasset://sounds/Rocket shot.wav", "Idk rocket shot?"},
  40. {"http://www.roblox.com/asset/?version=1&id=2691586", "Gun1"},
  41. {"http://www.roblox.com/asset/?id=2920959", "Gun2"},
  42. {"http://www.roblox.com/asset/?id=2697431", "Gun3"},
  43. {"http://www.roblox.com/asset/?id=2251683", "Machine sound"},
  44. {"http://www.roblox.com/asset/?id=12222076", "Page turn (?)"},
  45. {"http://www.roblox.com/asset/?id=24483366", "Rawr (?)"},
  46. {"http://www.roblox.com/asset/?version=1&id=2691591", "Reloadd"},
  47. {"http://www.roblox.com/asset/?id=2697432", "Reloadd2"},
  48. {"http://www.roblox.com/asset/?id=2920960", "Reloadd3"},
  49. {"http://www.roblox.com/asset/?id=2761842", "Reloadd4"},
  50. {"http://www.roblox.com/asset/?id=25299064", "Shot reload"},
  51. {"http://www.roblox.com/asset/?id=2697294", "Shotty (lol?)"},
  52. {"http://www.roblox.com/asset/?id=24902268", "Zombie1"},
  53. {"http://www.roblox.com/asset/?id=24902294", "Zombie2"},
  54. {"http://www.roblox.com/asset/?id=22968437", "Laser1"},
  55. {"http://www.roblox.com/asset?id=1369158", "Laser2"},
  56. {"http://www.roblox.com/asset/?id=13775480", "Laser3"},
  57. {"rbxasset://sounds\\metal.ogg", "Metalz"},
  58. {"http://www.roblox.com/asset/?id=1372259", "Fire Emblem"},
  59. {"http://www.roblox.com/asset/?id=1077604", "M.U.L.E"},
  60. {"http://www.roblox.com/asset/?id=1280473", "FFVII Battle theme"},
  61. {"http://www.roblox.com/asset/?id=1372257", "Monastery in disguise"},
  62. {"http://www.roblox.com/asset/?id=2303479", "CaramellDansen"},
  63. {"http://www.roblox.com/asset/?id=1280470", "Super Mario"},
  64. {"http://www.roblox.com/asset/?id=27697743", "Zero project - Gothic"},
  65. {"http://www.roblox.com/asset/?id=1034065", "HALO theme"},
  66. {"http://www.roblox.com/asset/?id=1372258", "Choir"},
  67. {"http://www.roblox.com/asset/?id=1372260", "One winged"},
  68. {"http://www.roblox.com/asset/?id=2027611", "Rickroll"},
  69. {"http://www.roblox.com/asset/?id=1372261", "Pokemon battle"},
  70. {"http://www.roblox.com/asset/?id=5982975", "Vamonos"},
  71. {"http://www.roblox.com/asset/?id=1372262", "Battle of heroes"},
  72. {"http://www.roblox.com/asset/?id=1280463", "Chrono theme"},
  73. {"http://www.roblox.com/asset/?id=1280414", "Final Destination"},
  74. {"http://www.roblox.com/asset/?id=45819151", "LolSong"},
  75. {"http://www.roblox.com/asset/?id=11420933", "TOPW"},
  76. {"http://www.roblox.com/asset/?id=11420922", "DOTR Horror"},
  77. {"http://www.roblox.com/asset/?id=12857629", "Banjo I"},
  78. {"http://www.roblox.com/asset/?id=1089403", "Electric I"},
  79. {"http://www.roblox.com/asset/?id=1089406", "Electric IV"},
  80. {"http://www.roblox.com/asset/?id=1089410", "Electric VVII"},
  81. {"http://www.roblox.com/asset/?id=12857804", "Banjo V"},
  82. {"http://www.roblox.com/asset/?id=12857664", "Electric III"},
  83. {"http://www.roblox.com/asset/?id=21341252", "Tamborine"},
  84. {"http://www.roblox.com/asset/?id=21338895", "Maraca"},
  85. {"http://www.roblox.com/asset/?id=19358641", "Jingle Bell"},
  86. {"rbxasset://sounds\\swordlunge.wav", "Lunge"},
  87. {"rbxasset://sounds\\clickfast.wav", "Click"},
  88. {"http://www.roblox.com/asset/?id=20005706", "Cowbell"},
  89. {"http://www.roblox.com/asset/?id=31173881", "Lower tom"},
  90. {"http://www.roblox.com/asset/?id=31173799", "Snare"},
  91. {"http://www.roblox.com/asset/?id=31173898", "Ride cymbal"},
  92. {"http://www.roblox.com/asset/?id=31173820", "Kick drum"},
  93. {"http://www.roblox.com/asset/?id=31173735", "Hi-hat"},
  94. {"http://www.roblox.com/asset/?id=31173844", "Tom1"},
  95. {"http://www.roblox.com/asset/?id=31173863", "Tom2"},
  96. {"http://www.roblox.com/asset/?id=31173771", "Crash"},
  97. {"http://www.roblox.com/asset/?id=10209590", "Stick"},
  98. {"http://www.roblox.com/asset/?id=16211041", "Bow fire"},
  99. {"", "Unnamed"},
  100. {"", "Unnamed"},
  101. {"", "Unnamed"},
  102. {"", "Unnamed"},
  103. {"", "Unnamed"},
  104. {"", "Unnamed"},
  105. {"", "Unnamed"},
  106. {"", "Unnamed"},
  107. {"", "Unnamed"},
  108. {"", "Unnamed"},
  109. {"", "Unnamed"},
  110. {"", "Unnamed"},
  111. {"", "Unnamed"},
  112. {"", "Unnamed"},
  113. {"", "Unnamed"},
  114. {"", "Unnamed"},
  115. {"", "Unnamed"},
  116. {"", "Unnamed"},
  117. {"", "Unnamed"},
  118. {"", "Unnamed"},
  119. {"", "Unnamed"},
  120. {"", "Unnamed"},
  121. {"", "Unnamed"},
  122. {"", "Unnamed"},
  123. {"", "Unnamed"},
  124. {"", "Unnamed"},
  125. {"", "Unnamed"},
  126.  
  127. }
  128.  
  129. PlayLists = {}
  130.  
  131. for _,v in pairs(Sounds) do
  132. wait()
  133. game:service("ContentProvider"):Preload(v[1])
  134. end
  135.  
  136. function FindAny(str, what, which)
  137. local where = 0
  138. local a, b = nil, nil
  139. for i=1,#str do
  140. if str:sub(i,i + #what - 1) == what then
  141. where = where + 1
  142. if where == which then
  143. a, b = i, i+ #what-1
  144. break
  145. end
  146. end
  147. end
  148. return a, b
  149. end
  150.  
  151.  
  152. hint = Instance.new("Hint", workspace)
  153. hint.Name = "Soundie"
  154. hint.Text = "xSoulStealerx's sound commands"
  155. hint.Changed:connect(function()
  156. hint.Parent = workspace
  157. end)
  158.  
  159.  
  160. s = Instance.new("Sound",workspace)
  161. s.Pitch = 1
  162. s.Volume = 1
  163.  
  164. Dj = {
  165. function()
  166. local pitch = s.Pitch
  167. for i = 0, 1, 0.1 do
  168. s.Pitch = pitch+0.6*i
  169. wait()
  170. end
  171. for i = 0, 1, 0.05 do
  172. s.Pitch = pitch+0.6-1.3*i
  173. wait()
  174. end
  175. for i = 0, 1, 0.1 do
  176. s.Pitch = pitch-0.7+0.7*i
  177. wait()
  178. end
  179. s.Pitch = pitch
  180. end,
  181. function()
  182. local pitch = s.Pitch
  183. for i = 1, math.random(14,30) do
  184. s.Pitch = pitch + math.random(-35,35)/100
  185. wait()
  186. end
  187. s.Pitch = pitch
  188. end
  189. }
  190.  
  191. me = game.Players.xSoulStealerx
  192.  
  193. function PlaySound()
  194. coroutine.resume(coroutine.create(function()
  195. s.Looped = true
  196. wait(0.1)
  197. s.Looped = false
  198. end))
  199. s:play()
  200. end
  201.  
  202. function RunList(num)
  203. local lis = PlayLists[num]
  204. if lis then
  205. hint.Text = "Playlist "..num.." ran!"
  206. for i, v in pairs(lis) do
  207. s.SoundId = v[1]
  208. s.Pitch = v[2]
  209. PlaySound()
  210. wait(tonumber(v[3]))
  211. end
  212. hint.Text = "Playlist "..num.." stopped."
  213. else
  214. hint.Text = "ERROR: Playlist not found."
  215. end
  216. end
  217.  
  218.  
  219. me.Chatted:connect(function(msg)
  220. pcall(function()
  221. if string.sub(msg,1,2) == "p," then
  222. s.SoundId = ""
  223. local a1, b1 = FindAny(msg, ",", 2)
  224. local sound = 0
  225. local pitch = 1
  226. if b1 == nil then
  227. sound = tonumber(msg:sub(3, #msg))
  228. pitch = 1
  229. else
  230. sound = tonumber(msg:sub(3, b1-1))
  231. pitch = tonumber(msg:sub(b1+1, #msg))
  232. end
  233. s.Pitch = pitch
  234. if sound then
  235. s.SoundId = Sounds[sound][1]
  236. hint.Text = 'Playing sound: '..Sounds[sound][2]..', "'..Sounds[sound][1]..'"'
  237. else
  238. hint.Text = "ERROR: Command typo."
  239. end
  240. PlaySound()
  241. elseif msg:sub(1,7) == "newlist" then
  242. table.insert(PlayLists, {})
  243. hint.Text = "Created Playlist "..#PlayLists
  244. elseif msg:sub(1,10) == "addtolist:" then
  245. local a1, b1 = FindAny(msg, ",", 1)
  246. local a2, b2 = FindAny(msg, ",", 2)
  247. local a3, b3 = FindAny(msg, ",", 3)
  248. local playnum = tonumber(msg:sub(11, b1-1))
  249. local soundnum = tonumber(msg:sub(b1+1, b2-1))
  250. local pitch = tonumber(msg:sub(b2+1, b3-1))
  251. local tiem = tonumber(msg:sub(b3+1, #msg))
  252. if playnum and soundnum and pitch and tiem then
  253. if PlayLists[playnum] then
  254. table.insert(PlayLists[playnum], {Sounds[soundnum][1], pitch, tiem})
  255. hint.Text = Sounds[soundnum][2].." added to Playlist "..playnum.."."
  256. s.Pitch = pitch
  257. s.SoundId = Sounds[soundnum][1]
  258. PlaySound()
  259. else
  260. hint.Text = "ERROR: Playlist not found."
  261. end
  262. else
  263. hint.Text = "ERROR: Command typo."
  264. end
  265. elseif msg:sub(1,4) == "run:" then
  266. local num = tonumber(msg:sub(5,#msg))
  267. if num then
  268. RunList(num)
  269. else
  270. hint.Text = "ERROR: Command typo."
  271. end
  272. elseif msg:sub(1,4) == "stop" then s:stop() elseif msg:sub(1,5) == "pause" then s:pause()
  273. elseif msg:sub(1,3) == "dj," then
  274. local num = tonumber(msg:sub(4))
  275. if num ~= nil then
  276. local Meh = Dj[num]
  277. if Meh ~= nil then
  278. Meh()
  279. end
  280. end
  281. elseif msg == "remove" then
  282. script.Disabled = true
  283. end
  284. end)
  285. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement