rcubed1003

anime song play v2 fe

Dec 8th, 2019 (edited)
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. SoundIds = {"4837158570"," 4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570","4837158570"}
  2.  
  3. Sound = Instance.new("Sound",game.Workspace)
  4. Sound.Volume = 0
  5. Sound.Looped = true
  6. Sound.SoundId = "http://www.roblox.com/asset?id="
  7.  
  8. while true do
  9. Current = SoundIds[math.random(1,#SoundIds)]
  10. Last = Sound.SoundId
  11. wait(4)
  12. Sound.SoundId = "http://www.roblox.com/asset?id="..Current
  13. while Sound.SoundId == Last do
  14. Current = SoundIds[math.random(1,#SoundIds)]
  15. Sound.SoundId = "http://www.roblox.com/asset?id="..Current
  16. end
  17. Sound:Play()
  18. wait(1)
  19. for i = 1,10 do
  20. wait(0.25)
  21. if Sound.Volume ~= 1 then
  22. Sound.Volume = Sound.Volume + 0.1
  23. end
  24. end
  25. wait(110)
  26. for i = 1,10 do
  27. wait(0.25)
  28. if Sound.Volume ~= 0 then
  29. Sound.Volume = Sound.Volume - 0.1
  30. end
  31. end
  32. Sound:Stop()
  33. end
Add Comment
Please, Sign In to add comment