Is there an easy way to shorten this line of code?
if (part.Material == Enum.Material.Concrete or part.Material == Enum.Material.Slate or part.Material == Enum.Material.Cobblestone or part.Material == Enum.Material.Granite or part.Material == Enum.Material.Marble) then

1 comment
use a table of valid materials, then loop through it