Song/Music Queue not Working as Intended

Hey, I’m making a music queue which should play the 1st song in the queue, then the second and then once the queue is done, it should play back the 1st song, but for some reasons, after the 1st song is finished playing, it should play the 2nd song at the beginning, but since the 2nd song is longer then the 1st, its playing at the end, like if the 2nd song started already.

sorry if this was explained poorly, i can show ingame clip if needed

this is my script:

for i, v in pairs(songQuenue) do
   song.SoundId = v
   currentSong.Value = tonumber(string.sub(currentSongId, 14, v:len()))

   task.wait(1)
   song:Play()

   song.Ended:Wait()
   task.wait(1)
end