Hello, I am trying to make a script that shuffles songs randomly. My issue is that it only plays one song then stops. Thanks in advance.
Songs = game.SoundService.Music:GetChildren()
while true do
ChosenSong = Songs[math.random(1,#Songs)]
print(ChosenSong.Name)
ChosenSong:Play()
ChosenSong.Ended:Wait()
wait(15)
end

2 comments
15 seconds is a pretty long wait, are you sure you waited that long for the next one to play?
Yes, I waited at least a few minutes.