Hello Everyone!
Im making a game with my friend and we want to add a playlist to it…
So, we took @so_norm 's playlist and we changed the music…
but we have a problem…
When playing, only sounds the first music and then, the rest of the music doesn’t sounds at all…
I tried looking at the output… but it doesn’t says anything
Here is the code:
print 'Loading Playlist...'
print "Finding Music..."
------------------------------------[[PLAYLIST]---------------------------------------------------------------------------------------------------------------------
song1 = "rbxassetid://1014257708" --insert the ID number after the "/?id="
song2 = "rbxassetid://4622908368"
song3 = "rbxassetid://5007962784"
song4 = "rbxassetid://621227155"
song5 = "rbxassetid://5156875023"
song6 = "rbxassetid://3641661060"
song7 = "rbxassetid://4900674369"
song8 = "rbxassetid://4908706672"
song9 = "rbxassetid://5072080698"
song10 = "rbxassetid://4649504981"
song11 = "rbxassetid://3904966391"
song12 = "rbxassetid://4704245296"
song13 = "rbxassetid://3660329829"
print "Music (Variables) Found!"
print "Playing Music..."
-----------------------------------[[SUGGESTIONS]]----------------------------------------------------------------------------------------------------------------------------------
--[[Here are some suggested ID's for you, Note these are mostly club/Dubstep songs
1.145060711
2.146180801
3.152357361
4.152357361
5.145579822
6.148492408
7.142720946
8.142372565
9.152779074
10.145915908
11.138855854
--]]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
print 'Creating a Source of Audio'
local music = Instance.new("Sound") -- This creates the sound. Since this is an Independent Variable, You should not change it at all.
music.Archivable = true -- This MUST be true or you may have some problems.
print 'Inspecting the Configurable Variables'
------------------------------------------CONFIGURABLE VARIABLES]]------------------------------------------------------------------------------
music.Parent = script.Parent -- This is where the sound will be placed. If you want the sound to be heard everywhere, don't change it or put it into Workspace.
-- If you want the sound to be heard in one spot, put it in a brick
--
music.Pitch = 1 -- Pitch manages the Pitch and Speed of the Sound. Pitch 1 is the normal sound, although some sounds have a problem that they are slow, increase this
-- value so you can hear the original. There is a list of official pitches for songs named "Official Pitches".
-- Adding multiple Pitches will require a bit of work, so if your a beginner, just stick with one pitch for now.
--
music.Volume = 1 -- This determines how loud the music will be. If this is being heard in one spot, this can configure how far you can hear the sound.
-- The maximum is 1. Volumes set above 1 will be unaffected.
-- For music heard across the game, if you have other sounds, put this to 0.9 or 1, otherwise you won't hear your music because of the other sounds
--
music.Looped = false -- This determines if the sound will repeat forever. If you have more than one sound, you MUST set this to false, otherwise you will be able to
-- have problems with pausing and playing
--
music.Name = "Player" -- This determines the name of the source of Audio. Name it whatever you want.
--
--
-------------------[[SONGS PLAYER]]---------------------------------------------------------------------------
--Only touch if you need to change the length of wait for a song.
print "Loading RMP 1.0 (Playlist)"
--playlist V
while (true) do
-- starts here
print 'Playing Sound 1'
music.SoundId = song1
music:play()
wait(196.4)
--2--
print 'Playing Sound 2'
music.SoundId = song2
music:play()
wait(98.2)
--3--
print 'Playing Sound 3'
music.SoundId = song3
music:play()
wait(194.5)
--4--
print 'Playing Sound 4'
music.SoundId = song4
music:play()
wait(195.1)
--5--
print 'Playing Sound 5'
music.SoundId = song5
music:play()
wait(184.3)
--6--
print 'Playing Sound 6'
music.SoundId = song6
music:play()
wait(97.1)
--7--
print 'Playing Sound 7'
music.SoundId = song7
music:play()
wait(131.5)
--8--
print 'Playing Sound 8'
music.SoundId = song8
music:play()
wait(207.1)
--9--
print 'Playing Sound 9'
music.SoundId = song9
music:play()
wait(111.1)
--10--
print 'Playing Sound 10'
music.SoundId = song10
music:play()
wait(90.1)
--11--
print 'Playing Sound 11'
music.SoundId = song11
music:play()
wait(77.1)
--12--
print 'Playing Sound 12'
music.SoundId = song12
music:play()
wait(120.1)
--13--
print 'Playing Sound 12'
music.SoundId = song13
music:play()
wait(108.1)
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{
--Made by NotSoNorm, If you have any questions or concerns just shoot me a PM via Roblox or Twitter.
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{
end
What is going wrong here? (also if you see other problem, say me how to fix it)
Thank you!