You can use tonumber("1") and it'll return 1, is there a similar function for enums?
I want to save some Enums in StringValues, so I'd need a function sorta like toEnum("Enum.KeyCode.LeftControl") and have it return Enum.KeyCode.LeftControl, instead of the string version.
I COULD just save "LeftControl" in the StringValue and do "Enum.KeyCode[StringValue.Value]", but I'd prefer to save the whole Enum thing in there to avoid any possible confusion, thanks in advance!

1 comment
Yes. Incredibly hacky. Don't do this.