Indexing a table returns nil

I don’t have much experience with indexing sub tables but I found this might help