ID = '145777704' -- Set the ID to the music you want to play. Looped = false -- Set to false if you want non-looped music. Music=Instance.new("Sound" ,Workspace) Music.Name = "Music" if Looped == true then Music.Looped = true end Music.SoundId = "http://roblox.com/asset/?id=145777704" -- Set the ID to the music you want to play here also (I picked a recommended music by me :3) Music:Play() wait (87) ID = '0' -- Set the ID to the music you want to play. Looped = false -- Set to false if you want non-looped music. Music=Instance.new("Sound" ,Workspace) Music.Name = "Music" if Looped == true then Music.Looped = false end Music.SoundId = "http://roblox.com/asset/?id=0" -- Set the ID to the music you want to play here also (I picked a recommended music by me :3) Music:Play()
I need the music to stop and another to start the same second. any help?
You can stop a sound from playing by using the Stop
function, shown as following:
ID = '145777704' -- Set the ID to the music you want to play. Looped = false -- Set to false if you want non-looped music. Music=Instance.new("Sound" ,Workspace) Music.Name = "Music" if Looped == true then Music.Looped = true end Music.SoundId = "http://roblox.com/asset/?id=145777704" -- Set the ID to the music you want to play here also (I picked a recommended music by me :3) Music:Play() wait (87) Music:Stop() --Simple right?