Script or blocks wont show color

The script might be the problem but i dont think it is the problem
or the blocks could be the problem
Here is some pics :


I tried to see what is doing it but i cant find the soulution

while wait() do
	if number == 0 then
		number = 1
		local pcalltodo = pcall(function()
			for _,v in pairs(script.Parent:GetChildren()) do
				if v:IsA("Part") or v:IsA("MeshPart") then
					if v.Name == script.Parent.Name then
					else
						v.Color = script.Parent.PrimaryPart.Color
					end
				end
			end
		end)
	else
		wait(10)
		local pcalltodo = pcall(function()
			for _,v in pairs(script.Parent:GetChildren()) do
				if v:IsA("Part") or v:IsA("MeshPart") then
					if v.Name == script.Parent.Name then
					else
						v.Color = script.Parent.PrimaryPart.Color
					end
				end
			end
		end)
	end
end
1 Like

oh silly me i forgot they dont change union lol

1 Like

also how i do make it change the union strate if i can

Never mind i found what i did wrong it was a union so i had to change some properties!