Advertisement
yonidrori

Untitled

Sep 19th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. player = script.Parent.Parent
  2. character = player.Character
  3.  
  4. model.Changed:connect(function(MusicPlayer) --207763482 IS THE LOBBY MUSIC
  5. if model.Name == "Intermission" then
  6. local songList = {259692030, 177393290, 181547615, 241244927, 241244927, 262766230, 152400962, 152400962, 174003599, 178655848, 165065112}
  7. local songSelect = songList[math.random(#songList)]
  8. local song = ("http://www.roblox.com/asset/?id="..songSelect)
  9. local sound = Instance.new("Sound", script.Parent.Parent)
  10. sound.SoundId = song
  11. sound.TimePosition = 15.5
  12. sound.Volume = 0
  13. sound:Play()
  14. for i = 0, 1, .1 do
  15. wait(.2)
  16. sound.Volume = i
  17. end
  18. wait(10)
  19. for i = 1, 0, -.1 do
  20. wait(.5)
  21. sound.Volume = i
  22. end
  23. sound:Stop()
  24. sound:Destroy()
  25. wait(.75)
  26. local lobbysound = Instance.new("Sound", script.Parent.Parent)
  27. lobbysound.SoundId = "http://www.roblox.com/asset/?id=207763482"
  28. lobbysound:Play()
  29. lobbysound.Volume = 0
  30. lobbysound.TimePosition = 6
  31. for i = 0, 1, .1 do
  32. wait(.3)
  33. lobbysound.Volume = i
  34. end
  35. wait(17.5)
  36. for i = 1, -1.5, -.1 do
  37. wait(.3)
  38. lobbysound.Volume = i
  39. end
  40. wait(1)
  41. elseif model.Name == "Game in progress: 120" then
  42. script.Parent.Parent.Sound:Stop()
  43. script.Parent.Parent.Sound:Destroy()
  44. local gameSound = Instance.new("Sound", script.Parent.Parent)
  45. gameSound.SoundId = "http://www.roblox.com/asset/?id=144079092" --game music
  46. gameSound:Play()
  47. wait(120)
  48. gameSound:Stop()
  49. gameSound:Destroy()
  50. end
  51. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement