Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = script.Parent.Parent
- character = player.Character
- model.Changed:connect(function(MusicPlayer) --207763482 IS THE LOBBY MUSIC
- if model.Name == "Intermission" then
- local songList = {259692030, 177393290, 181547615, 241244927, 241244927, 262766230, 152400962, 152400962, 174003599, 178655848, 165065112}
- local songSelect = songList[math.random(#songList)]
- local song = ("http://www.roblox.com/asset/?id="..songSelect)
- local sound = Instance.new("Sound", script.Parent.Parent)
- sound.SoundId = song
- sound.TimePosition = 15.5
- sound.Volume = 0
- sound:Play()
- for i = 0, 1, .1 do
- wait(.2)
- sound.Volume = i
- end
- wait(10)
- for i = 1, 0, -.1 do
- wait(.5)
- sound.Volume = i
- end
- sound:Stop()
- sound:Destroy()
- wait(.75)
- local lobbysound = Instance.new("Sound", script.Parent.Parent)
- lobbysound.SoundId = "http://www.roblox.com/asset/?id=207763482"
- lobbysound:Play()
- lobbysound.Volume = 0
- lobbysound.TimePosition = 6
- for i = 0, 1, .1 do
- wait(.3)
- lobbysound.Volume = i
- end
- wait(17.5)
- for i = 1, -1.5, -.1 do
- wait(.3)
- lobbysound.Volume = i
- end
- wait(1)
- elseif model.Name == "Game in progress: 120" then
- script.Parent.Parent.Sound:Stop()
- script.Parent.Parent.Sound:Destroy()
- local gameSound = Instance.new("Sound", script.Parent.Parent)
- gameSound.SoundId = "http://www.roblox.com/asset/?id=144079092" --game music
- gameSound:Play()
- wait(120)
- gameSound:Stop()
- gameSound:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement