Enum

The engine implements enumerated types as the built-in Enum data type. Each enum has a predefined set of items (represented by the EnumItem data type), which are used by classes to allow changes to certain aspects of behavior or appearance. Enum items act as constants in place of using ambiguous numbers or strings to set a value. The Enums data type exposes all of the enums to the API with the Enum global property.
For example, the Material enum is used by which sets the texture of a part as well as physical properties depending on the item of the Material enum that is set.
:
local part = Instance.new("Part")
part.Material = Enum.Material.Wood
part.Parent = workspace
== External links ==
*Enum, EnumItem, and Enums on the Roblox Creator Documentation
Category:Scripting
Category:Roblox types