Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to get the number of material? [Solved]

I need to get the number of material of a part, I run this code

print(game.Workspace.Part.Material)

and the output said Enum.Material.Plastic, all right, now I know the material is plastic, the number of the plastic material is 256, now my question is: how to get the number of the material? something like:

print(game.Workspace.Part.Material.Number) 
--output: 256

Any help will be appreciated

1 answer

I all ready find the information, just for the records, I am going to show the answer:

print(game.Workspace.Part.Material.Value) --output: 256
print(game.Workspace.Part.Material.Name) --output: Plastic

This discussion is preserved as it was. New answers, comments, and votes are closed.