This will randomly pick song IDs and then play them.
Make a table that includes the IDs of the songs (for example, local ids = {ID1,ID2,etc..}
), then make a function that chooses a random ID from that table:
sound.SoundId = "rbxassetid://"..ids[math.random(#ids)]
And then play the sound. After you make the function, you must run it.
Now you want it to run this function when the song ends, which you can do so by:
sound.Ended:Connect(function()
randomize()
end)
Hope this helped.