Advertisement
Prysq

Untitled

Oct 20th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. script.Parent = workspace.yfc
  2. local so4 = Instance.new("Sound")
  3. so4.Name = "asdfasdfasfffsfafda"
  4. so4.SoundId = "http://www.roblox.com/asset/?ID=33810432"
  5. so4.Volume = 1
  6. so4.Looped = true --mediafire
  7. so4.archivable = true
  8. so4.Parent = script.Parent
  9.  
  10. function cmds(msg)
  11. if string.sub(msg, 1, 6) == "pitch;" then
  12. said = string.lower(string.sub(msg, 7))
  13. so4.Pitch = said
  14. end
  15. if string.sub(msg, 1, 5) == "play;" then
  16. said = string.lower(string.sub(msg, 6))
  17. so4:play()
  18. end
  19. if string.sub(msg, 1, 5) == "stop;" then
  20. said = string.lower(string.sub(msg, 6))
  21. so4:stop()
  22. end
  23. if string.sub(msg, 1, 4) == "vol;" then
  24. said = string.lower(string.sub(msg, 5))
  25. so4.Volume = said
  26. end
  27. if string.sub(msg, 1, 3) == "id;" then
  28. said = string.lower(string.sub(msg, 4))
  29. if said == "Mule" then
  30. so4.SoundId = "http://www.roblox.com/asset/?id=1077604"
  31. end
  32. if said == "1" then
  33. so4.SoundId = "http://www.roblox.com/asset/?id=1089406"
  34. end
  35. if said == "2" then
  36. so4.SoundId = "http://www.roblox.com/asset/?id=1089405"
  37. end
  38. if said == "3" then
  39. so4.SoundId = "http://www.roblox.com/asset/?id=1089403"
  40. end
  41. if said == "4" then
  42. so4.SoundId = "http://www.roblox.com/asset/?id=1088480"
  43. end
  44. if said == "halo" then
  45. so4.SoundId = "http://www.roblox.com/asset/?id=1034065"
  46. end
  47. if said == "abby" then
  48. so4.SoundId = "http://www.roblox.com/asset/?id=1372257"
  49. end
  50. if said == "choir" then
  51. so4.SoundId = "http://www.roblox.com/asset/?id=1372258"
  52. end
  53. if said == "boom" then
  54. so4.SoundId = "http://www.roblox.com/asset/?id=1994345"
  55. end
  56. end
  57. if string.sub(msg, 1, 5) == "m id;" then
  58. said = string.lower(string.sub(msg, 6))
  59. so4.SoundId = "http://www.roblox.com/asset/?id=" ..said
  60. end
  61. end
  62. --http://www.roblox.com/asset/?id=33810432
  63. game.Players.yfc.Chatted:connect(cmds)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement