https://github.com/name-hw/userenums
A user-created, autocomplete recreation of Roblox's Enum.
https://github.com/name-hw/userenums
enumeration luau roblox-api
Last synced: 4 months ago
JSON representation
A user-created, autocomplete recreation of Roblox's Enum.
- Host: GitHub
- URL: https://github.com/name-hw/userenums
- Owner: Name-hw
- License: mit
- Created: 2024-06-29T08:59:54.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-21T13:43:53.000Z (over 1 year ago)
- Last Synced: 2025-03-02T08:34:35.927Z (over 1 year ago)
- Topics: enumeration, luau, roblox-api
- Language: Luau
- Homepage: https://devforum.roblox.com/t/userenums-a-user-created-autocomplete-recreation-of-robloxs-enum/3040499
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UserEnums
A user-created, autocomplete recreation of Roblox's Enum.
## Features
1. Auto-complete Enums.
2. You can create Enums that can be used in multiple scripts.
3. Almost identical to Enums created by Roblox.
4. Also available on Lune.
## How to use
- First, write EnumList in the EnumList module script under Enums.
- Second, require Enums in the script you want to use.
### Example
When you want to create Enums called Enum.TestEnum.TestEnumItem1 and Enum.TestEnum.TestEnumItem2
Enums.EnumList:
```luau
local EnumList = {
TestEnum = {
TestEnumItem1 = {},
TestEnumItem2 = {},
}
}
```
Script:
```luau
local Enums = require(Location of Enums)
```