PumpkinPrice = PumpkinPrice * UnnamedValues.ValueArray.MaterialArray[tostring(Object.Material)]
But there are many conflicts, as .Value would print it's enum correspondant, and ^ throws an error.
I want to be able to directly get the name of the material from a base part.
Here is a function I wrote real quick to more easily return the material value. Hopefully it suits what you're looking for.
function ParseMaterialType(BasePart) return string.sub(tostring(BasePart.Material), 15) end