I have this much so far been modifying from my last question, but when multiple people play, it all different for them and they could hear it which make it all mashed up and sound incorrect. I trying to find a way so when the loading gui enables this script, it will play for other charcter but when a new player join and goes though the loading gui, they will not hear a cross over from the other characters music. Here is what i have done so far, ~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~ local ValidIds = {284482021,236208243,248516495,181875510,180804241,177489762,294940115} function PlaySong() local Sound = Instance.new("Sound",game.Workspace) Sound.Name = "LobbyMusic" -- Name the Sound Sound.SoundId = "http://www.roblox.com/asset/?id=" .. ValidIds[math.random(1,#ValidIds)] Sound.Volume = 0 Sound.Pitch = 1 wait() Sound:Play() for i = 1,100 do wait(0.1) Sound.Volume = Sound.Volume + 0.05 end wait(Sound.TimeLength) Sound:Stop() Sound:Destroy() end
PlaySong()
while wait() do PlaySong() end