So I have a script that plays background music in my game but I wanna add a thing that says “currently playing: (song name)” how would I do that?
My script is:
local sound = {3761146586, 7028518546, 7029024726, 7023617400, 7023598688, 5410086218, 1838660362, 1847606521}
local musicPlayer = script.Parent
while true do
for i in pairs(sound) do
musicPlayer.SoundId = "rbxassetid://"..sound[i]
musicPlayer:Play()
print("Playing ".. sound[i])
repeat wait (1) until not musicPlayer.IsPlaying
print("ended")
end
end