Enum

Enum

Overview

Description

Enum is a special "class" that represents a group of predefined constants. Enums are commonly used to define a set of named values that belong to a specific category.

Properties

Constructors

Methods

GetEnumItems

This method retrieves all the items of the enum as an array.

Parameters

Return

array

Returns an array containing all items of the enum.

Code Samples

local HumanoidStateTypeList = Enum.HumanoidStateType:GetEnumItems()

for i, stateType in ipairs(HumanoidStateTypeList) do
    print("Enum.HumanoidStateType." .. stateType.Name)
end

Last updated