My script for the sound don't work

hello i create so that my two music plays when the other would have finished and also I also created a gui button so that the player wishes to deactivate the music but the script does not work so if someone can help me it will be really good

here is the script

local soundIdList = {
5409360995, – ID de la première chanson
5410085763, – ID de la deuxième chanson
– Ajoute d’autres ID de chansons ici si nécessaire
}

local currentSoundIndex = 1
local currentSound
local isMuted = false

local function playNextSong()
if currentSound then
currentSound:Stop()
end

if isMuted then
return
end

if currentSoundIndex > #soundIdList then
currentSoundIndex = 1
end

local soundId = soundIdList[currentSoundIndex]
currentSound = game:GetService(“SoundService”):PlayLocalSound(soundId)
currentSound.Ended:Connect(function()
currentSoundIndex = currentSoundIndex + 1
playNextSong()
end)
end

local function toggleMute()
isMuted = not isMuted

if isMuted then
if currentSound then
currentSound:Stop()
end
else
playNextSong()
end
end

local player = game.Players.LocalPlayer
local gui = player.PlayerGui:WaitForChild(“MuteGui”) – Remplace “Gui” par le nom de l’objet GUI dans ton jeu

local muteButton = gui:WaitForChild(“:loud_sound:”) – Remplace “MuteButton” par le nom du bouton Mute
local unmuteButton = gui:WaitForChild(“:mute:”) – Remplace “UnmuteButton” par le nom du bouton Unmute

muteButton.MouseButton1Click:Connect(function()
toggleMute()
end)

unmuteButton.MouseButton1Click:Connect(function()
toggleMute()
end)

Could you post the specific error that you’re getting?

in ouput there is no error and it does not work I do not understand