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

How to get the Enum code of a material via script?

Using this list as a reference i can write the following script to print the number for the colour:

print(BrickColor.new('Deep blue').Number)
>1012

However while also using this list as a reference for material number enums I don't know how I would be able to get the number if I am only given the name of the material e.g I have a wood part and I want to know the number that Wood is (512) How would i do this?

1 comment

0

Maybe: print(Enum.Material.Wood)

1 answer

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