Theme button not working

I am trying to make a theme changer for a gui. When i click the “Galaxy” (theme im making atm) button. It registers the click but nothing changes

local Main = script.Parent.Parent.Parent.Parent.Parent

local textObjs = {
	Main.ButtonContainer.OpenButton,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.QuickActions.TextLabel,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.Theme.GalaxyContainer.Galaxy,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.Theme.DarkContainer.Dark,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.Theme.LightContainer.Light,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.Theme.AuroraContainer.Aurora
}

local BGframes = {
	Main.MainMenu
}

local SecondaryFrames = {
	Main.ButtonContainer,
	Main.MainMenu.ScrollingFrame_12,
	Main.SideBar,
	Main.ButtonContainer.OpenButton,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.QuickActions,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.Theme.GalaxyContainer,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.Theme.DarkContainer,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.Theme.LightContainer,
	Main.MainMenu.ScrollingFrame_12.ScrollingFrame.Theme.AuroraContainer
}


textObjs[3].MouseButton1Click:Connect(function()
	print("click")
	local txtColor = Color3.fromRGB(255,255,255)
	local bgColor = Color3.fromRGB(69, 16, 230)
	local secondaryColor = Color3.fromRGB(157, 19, 255)
	
	for i, v in pairs(textObjs) do 
		v.TextColor3 = txtColor
	end
	
	for i, v in pairs(BGframes) do 
		v.BackgroundColor3 = bgColor
	end
	
	for i, v in pairs(SecondaryFrames) do 
		v.BackgroundColor3 = secondaryColor
	end
end)

Any help would be appreciated

Did you get any error in the output? I can’t directly find the issue here. Showing the workspace might help.

Try adding prints in the loops, double checking your variables and checking the object paths in the tables are correct.

I will do this and what @aron01224 said

:skull:
i have made the dumbest mistake ever lol… these are not frames, they are imagelabels lol (used for rounding)