Module Script Printing Nil

Hello once again, I’m trying to print out a value from a module script and it comes out as nil. I can print the whole table out but trying to make any new variable with a value in the table comes out as nil.

Local Script:

local Module = require(ReplicatedStorageService.Modules:WaitForChild("Information"))
local Information = Module.Info.TableInATable
print(Information) -- will print whole table correctly

local Variable = Information[2]

print(Variable) --prints nil :/

Module:

local module = {
	Info = {
		TableInATable = {
			Info1 = 7,
			Info2 = 10,
			Info3 = 1
		}
	}
}

return module

not an array, replace Info2 with [2] and w/ the other indices, or do it like this.

TableInATable = {
	7,  -- [1]
	10, -- [2]
	1,  -- [3]
}
1 Like

OH, i’m dumb, thank you. I’ll fix that.