I used the following code:
TextLabel.Text = tostring(part.Material)
However, this sets the text to: 'Enum.Wood.Material', instead of 'Wood'. Is there a way to get the material name without having to use a 'if part.Material == Enum.Material.Wood then ..'?
Use substrings.
print(string.sub( tostring(Enum.Material.Glass),15,20) ) -- "Glass"
'Enum.Material.' takes up 15 characters, so it just comes down to finding everything after those.