I'm trying to make a list of music which can be interacted by other users, but right now I'm stuck in a place where I don't know how I can make the code check if the 'Serverdefaultlist' to loop back to the first songs when the queue ends.
Serverdefaultlist = {1887115023, 4418905745, 497810777, 1477278823, 1572404379, 4924940868, 4689425151}
Userinputlist = {}
mainMusicList = {Userinputlist, Serverdefaultlist}
local songcount = 1
local sound = Serverdefaultlist
local music = script.Parent
while true do
wait()
music.SoundId = "rbxassetid://"..sound[songcount]
music:Play()
music.Ended: wait()
if --this is where the code stops since Im stuck and idk what to do
end

2 comments
Can you specify what you want checked in the 'Serverdefaultlist'?
In the 'Serverdefaultlist' is all of the songs that are already chosen to be in the loop queue, and every time the last song ends, I want it to go back to the first song.