It’s supposed to be customizable, and roblox does not provide a built-in way to create your own enums. For example, say you want to define access permission levels:
local CustomEnums = {
USER = 1;
MOD = 2;
ADMINISTRATIVE = 3;
}
local PermissionLevel == CustomEnums.ADMINISTRATIVE
if PermissionLevel == CustomEnums.MOD then
print('Its a moderator!')
elseif PermissionLevel == CustomEnums.ADMINISTRATIVE then
print('Its an admin!')
elseif PermissionLevel == CustomEnums.USER then
print('Its a user!')
end