✓ Accepted answer
.Material is not a method, it is a property. That means v.Material is a value of some kind.
The Material property page on the Wiki will tell you that the value is a Material Enum.
Since you want to compare the material to Concrete to see if they are equal, you're probably going to use ==.
You can either compare the name of the material, or directly compare enums. Comparing one kind to the other kind will always return false since == first compares the types of the objects.
Since you will get an error if you mistype an enum name when using the Enum. option, that's probably better:
if v.Material == Enum.Material.Concrete then
1 comment
Although this may be the answer, you should probably provide some reason as to what they did wrong and how you would go about fixing it. Although code can be helpful, your answer should still provide some reasoning.