spawn(function()
while wait() do
if pops==true then
wait(0.2)
local sound = pop[currentSong]
print(sound)
sound:Play()
wait(0.2)
if currentSong~=#pop then -- Shuffles through the song now
currentSong = currentSong+1
else -- Resets the playlist.
currentSong = 1
print"detected pop"
end
repeat wait() until sound.Playing==false
end end end)
When all songs are done playing, the script goes crazy plays all the song after 1 second.
