I know this script would have lots of mistakes and would be complicated; it would be really appreciated if you could help me make it less sophisticated too. :)
local sound = script.Parent
songs = {
id1 = 181927642;
name1 = "Ariana Grande - Last Christmas";
id2 = 603146550;
name2 = "Cartoon - On & On"
}
while next do
local song = songs.id1 or songs.id2
if song == string.sub(1,4)=="name" then
else
sound.SoundId = "rbxassetid://"..math.abs(song)
if song == songs.id1 then
sound.Name = songs.name1
elseif song == songs.id2 then
sound.Name = songs.name2
end
sound:Play()
if sound.IsPlaying == false then
song = songs.id2 or songs.id1
end
repeat wait(1) until sound.TimePosition == sound.TimeLength
end
end

6 comments
Oh, I'm really grateful for you giving a script or me, but I was looking for a person who could fix my script. Thank you so much though! :D
I made a small change. There was a variable missing...
Also accept this, if you don't need any help more. ;)
I just remembered something! I was going to have a string saying the name on it... though, I'm sorry if this is drowning your time.
Try and look at the code now, I made it so that you can have a text frame for the title.
Thanks!