Here's my attempt based on how its done in Python or Ruby
local list = {1,2,3,4}
print(list[-1])
>> 4
----------
local list = {A, C, D, R, G}
print(list[-1])
>> G
list[-1] returns nil, is there an end of list reference in LUA might of just missed it but can't seem to find it in the docs, roblox or lua
*I can table.getn(list) and use that but I was just curious if there was something like the example above?

1 comment
In the list, you are placing a letter alone which is considered nil. To make something a string, you would place quotations around it like this; "A". Therefore If I were to print "A" it would print A rather than nil. In your list/Array you should be doing {"A","C","D","R","G"} . If you try printing now, It should print the letter G itself.