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

[SOLVED]How do I get the name of an Enum with its associated number?

Quite simply, I want to know if retrieving an Enum's name using its number is possible, and if so, how I can do it.

Example: The SoundService's AmbientReverb ReverbType property "NoReverb" has an Enum value of 0. Using just its associated number 0, could I retrieve its name, NoReverb?

1 answer

✓ Accepted answer
print(Enum.Material:GetEnumItems()[1])

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