It’s not printing Table[1] and it probably not inserting the brickcolor.
print('Cube Switch - loaded')
local screen = script.Parent:WaitForChild('screen')
local colors = {}
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA('Part') then
if v.Name == 'screen' then
return
end
table.insert(colors, v.BrickColor)
end
end
print(colors[1])