01 | local S 1 = Instance.new( "Sound" ) |
02 | S 1. Name = "Music" |
03 | S 1. SoundId = "http://www.roblox.com/asset/?id=154988842" |
04 | S 1. Parent = game.Workspace |
05 | local S 2 = Instance.new( "Sound" ) |
06 | S 2. Name = "Music" |
07 | S 2. SoundId = "http://www.roblox.com/asset/?id=181462247" |
08 | S 2. Parent = game.Workspace |
09 | local S 3 = Instance.new( "Sound" ) |
10 | S 3. Name = "Music" |
11 | S 3. SoundId = "http://www.roblox.com/asset/?id=181462282" |
12 | S 3. Parent = game.Workspace |
13 |
14 | local S 4 = Instance.new( "Sound" ) |
15 | S 4. Name = "Music" |
This is really easy to test and it works fine. Needs some organization. Always loop!
01 | local ids = { 154988842 , 181462247 , 181462282 , 181462320 , 181462345 } |
02 |
03 | local sounds = { } |
04 |
05 | for _,id in ipairs (ids) do |
06 | local new = Instance.new( "Sound" ) |
07 | new.SoundId = "http://www.roblox.com/asset/?id=" ..id |
08 | new.Parent = workspace |
09 | table.insert(sounds,new) |
10 | end |
11 |
12 | while wait() do |
13 | for _,s in ipairs (sounds) do |
14 | if not s.IsLoaded then s.Loaded:wait() end |
15 | s:Play() |
16 | s.Ended:wait() |
17 | end |
18 | end |