so i tested this script with the printed thing and i didn't see printed in the output

so does anyone know how to fix this script

local color1 = script.Parent.Parent.color1.Value

script.Parent.BrickColor = BrickColor.new(color1)

local function onColorChange()
	print("printed")
	script.Parent.BrickColor = BrickColor.new(color1)

end

script.Parent.Parent.color1:GetPropertyChangedSignal("Value"):Connect(onColorChange)