EnumItem
Overview
The EnumItem is a component that represents a single value within an enumeration (enum). EnumItems are used to define constants in a structured way, making the code more readable and maintainable.
Constructors
Properties
Name
string
This is the name of the EnumItem. It acts as a unique identifier within its EnumType and is used in the code for referencing this specific value.
Code Samples
local EnumItem = Enum.HumanoidStateType.Running
print(EnumItem.Name)Value
number
The Value property is a numerical representation assigned to the EnumItem. It is primarily used internally or for comparison purposes.
Code Samples
EnumType
Enum
The EnumType property indicates the enumeration to which this EnumItem belongs. It helps in identifying the group or category of the EnumItem.
Code Samples
Methods
Last updated