local function K(K)local N={}for K,y in ipairs(K)do N[y]=y end return setmetatable(N,{__index=function(K,N)error(string.format("\037\115 \105\115 \110\111\116 \097 \118\097\108\105\100 \109\101\109\098\101\114\033",N),2)end;__newindex=function()error("\089\111\117 \099\097\110\110\111\116 \099\114\101\097\116\101 \110\101\119 \109\101\109\098\101\114\115 \105\110\115\105\100\101 \111\102 \097\110 \101\110\117\109\033",2)end})end return K
local function createEnum(values)
    local enum = {}

    for _, member in ipairs(values) do
        enum[member] = member
    end

    return setmetatable(enum, {
        __index = function(_, key)
            error(string.format("%s is not a valid member!", key), 2)
        end,

        __newindex = function()
            error("You cannot create new members inside of an enum!", 2)
        end
    })
end

return createEnum