Hey, I'm trying to make like music player with songs that don't go in order, but instead they are shuffled and don't play in order. Here's script;
while true do
script.Parent.SoundId= "rbxassetid://142304703" --1 Fortunate Son
script.Parent:Play()
wait(120)
script.Parent.SoundId= "rbxassetid://142304778" --2 I Can See Clearly Now
script.Parent:Play()
wait(120)
script.Parent.SoundId= "rbxassetid://142304968" --3 Imagine
script.Parent:Play()
wait(120)
script.Parent.SoundId= "rbxassetid://142305080" --4 Lets Groove
script.Parent:Play()
wait(120)
script.Parent.SoundId= "rbxassetid://142305170" --5 Mercy Me
script.Parent:Play()
wait(120)
They play in order, but I want them to play randomly in any order. How do I modify it?

4 comments
About the waiting time, you see the 120 wait time in my original script was intended to be like the length of song until it changes to another. Will this shuffle script affect the songs length? Because I'm planning to add songs that are not the same 120 length.
And also your script doesn't work. No songs play.
He gave you a method. In no way is he obligated to give you direct code
Use Sound:Ended to catch when the song ends http://wiki.roblox.com/index.php?title=API:Class/Sound/Ended