Attempt to index nil with 'Name'

so I have a function that sorts objects in a table in alphabetical order, which are also instances. When I try to index them by name inside of a for loop, it prints one or three of the values and the returns:

Workspace.A-Chassis 6C by Novena.Body.VG Motorsports SR-1 Speedo.Software:155: attempt to
index nil with ‘Name’

here is my code:

if gear.Value == -1 then
    	local objects = GCA(gSSD)	
    	for i, v in pairs(SS_DISP2["Reverse"]) do
    			print(objects[i].Name)
    	end 
end 

the model has seven objects which are inside the objects table, and the SS_DISP2 also has seven values.

Desired output:

A
B
C
D
E
F
G

if gear.Value == -1 then
    	local objects = GCA(gSSD)	
    	for i, v in pairs(SS_DISP2["Reverse"]) do
                if objects[i] then 
    			      print(objects[i].Name)
                end
    	end 
end 

If you are still getting the same error, then you might not be including only the intended values inside the table (or the indices may not be matching neatly). I would verify how you’re populating the table objects and SS_DIP to check for any bugs.

You’ll have to show me both of the tables, because that would be your problem.
I think one of them might be using numerical keys and the other might be a dictionary.