Enumerations in lua need to be manually assigned initial values (C# will automatically assign 0, 1, 2, 3...) Wrong way of writing:
local EnumFruit= { Apple, Banana, Pear }
Correct spelling:
local EnumFruit= { Apple = 1, Banana = 2, Pear = 3 }