When running the code below at the very beginning of a local script placed in StarterPlayerScripts:
local keycode_values = {}
for i = 160, 254 do
table.insert(keycode_values , Enum.KeyCode:FromValue(i))
end
There is a chance an errors pops saying “FromValue is not a valid member of “Enum.KeyCode””.
I cannot reproduce this bug myself, as I just saw the error in the logs. It happened to 20 users in a timelapse of 8 hours in my game: ☃️Survive and Kill the Killers in Area 51 !!! - Roblox
Expected behavior
According to the documentation (Enum | Documentation - Roblox Creator Hub), FromValue is a method of Enums, so there is no reason for this error to happen. I expect the function FromValue to be found and executed.