Plugin music system using math.random plays the same song over and over again without change

you mean this one? Im a little confused

local getSound

local function playLocalSound(soundId)
	-- Create a sound
	local sound = Instance.new("Sound")
	sound.SoundId = soundId
	sound.Volume = 10
    getSound = sound
	-- Play the sound locally
	SoundService:PlayLocalSound(sound)
	sound.Ended:Wait()
	if getSound then
    game.Debris:AddItem(getSound, 0)
    end
end

local function EXIT()
script.Parent.Enabled = false
if getSound then
if pcall(function() getSound:Destroy() end) then
print("Sound has been completely destroyed.")
end
end
end

script.Parent.EXIT.MouseButton1Click:Connect(EXIT)

the script doesnt stop the music nor does it loop it, its explained in the top reply,

I’m currently testing it on my game, hold on.