im new to learning object coding and im getting confused of why there is a __index metamethod even tho you could instead:
local table = { a = 1 b = 2 } if not table.c then -- Put code you would have kept in __index metamethod else print("continued the script without using a function :)") end