tarrdoJoin Date: 2008-06-24 Post Count: 476 |
It doesn't loop
local songIds = {
["156413307"] = 112, --Audio Id = How long the song is
["156604313"] = 85, -- I was too lazy to find another song so yah
["162593556"] = 131
}
for songId, _ in pairs (songIds) do
Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=" .. songId)
end
script.Parent:Stop()
while true do
for songId, songLength in pairs (songIds) do
script.Parent:Stop()
script.Parent.SoundId = "http://www.roblox.com/asset/?id=" .. songId
script.Parent:Play()
wait(songLength)
end
end |
|
|
Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=" .. songIds[songId]) |
|
tarrdoJoin Date: 2008-06-24 Post Count: 476 |
It plays the music it just doesn't loop. |
|
|
local songIds = {
["156413307"] = 112, --Audio Id = How long the song is
["156604313"] = 85, -- I was too lazy to find another song so yah
["162593556"] = 131
}
for songId, _ in pairs (songIds) do
Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=" .. tonumber(songId))
end
script.Parent:Stop()
while wait() do
for songId, songLength in pairs (songIds) do
script.Parent:Stop()
script.Parent.SoundId = "http://www.roblox.com/asset/?id=" .. tonumber(songId)
script.Parent:Play()
wait(songLength)
end
end |
|