I'm making a code for my friend. It plays multiple songs though. Could anyone help me with it?
songs = {165065112, 145170576, 177027430, 153219396, 156643822, 180076355, 146682904, 146558717, 165497101, 143649712}
while true do
local id = math.random(1, #songs)
script.Parent.SoundId = "rbxassetid://"..songs[id]
script.Parent:Play()
wait(10)
end

2 comments
I'll fix it later. It's pretty late.
Also, the problem is that the songs needed to be stopped. They'll just keep playing and never stop until the audio is over... Which could take 2 minutes.