I've been trying to make a looping music script, and this is what I've gotten so far in progress;
ID = '142463279' -- 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=142463279"
Music:Play()
wait(120)
Game.Workspace.Music:remove()
ID = '142650764' -- 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=142650764"
Music:Play()
wait(120)
Game.Workspace.Music:remove()
ID = '133217882' -- 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=133217882"
Music:Play()
wait(120)
Game.Workspace.Music:remove()
ID = '170691997' -- 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=170691997"
Music:Play()
