Getting the user Studio color theme not working

Hello, Im making a plugin and the script i use to get the color theme of their studio is not working.
script:

local function syncGuiColors(objects)
	local function setColors()
		for _, guiObject in pairs(objects) do
			guiObject.BackgroundColor3 = settings().Studio.Theme:GetColor(Enum.StudioStyleGuideColor.MainBackground)
			guiObject.TextColor3 = settings().Studio.Theme:GetColor(Enum.StudioStyleGuideColor.MainText)
		end
	end
	setColors()
	settings().Studio.ThemeChanged:Connect(setColors)
end

Well, everything seems to be working fine with me, are you sure you called the syncGuiColors function at least once, or if the objects are valid?

my issue,

Well, can you hover over it so I can see what it says, also I ran the exact same function myself just to test and it worked, I don’t think the answer to your problem is within the function.

image
You must have other code causing the syntax errors.