Okay please take note
--------------------Model
---------Brick
--------------Decal
---------Brick
--------------Decal
---------Brick
--------------Decal
---------Brick
-------------Decal
That is what my model looks like, I have this code
local orderboard = game.Workspace.ModelCollection:GetChildren()
local ID = game.Workspace.ReferenceDecal.Texture
for i, v in pairs(orderboard) do
if v.Decal.Texture == ID then
---extra stuff goes here
end
end
I keep getting the error
Decal is not a valid member of Part
Why is this? Shouldn't the for loop be able to iterate things inside of the brick?

1 comment
That was it, thank you so much you are very good. I never thought about putting checks to see if these exist in the for loops or if statemetns. Thank you truly, I had some bricks in the model that did not have any Decals and I did not notice that.