How can I get something inside of an array inside a module

Hi, I’m trying to get an index value of something inside of an array, let me just list the code first so I can explain better


local module = {

["Stuff"] = {
		["V"] = 1,
		["V2"] = 2,
		["V3"] = 3,
		["V4"] = 4,
		["V5"] = 5
	}
}

return module

So basically, I’d like to call upon a V2 inside this module like this,

local mymodule = require(game.ServerScriptService.module)
print(mymodule.Stuff[1])

The output comes out as nil, is there any way to get a value of something inside “Stuff” with a number

Wait a minute shouldn’t the table look like this

module.Stuff = {
		["V"] = 1,
		["V2"] = 2,
		["V3"] = 3,
		["V4"] = 4,
		["V5"] = 5
	}
}

1 Like

Whoops you seem to have marked my post has a solution while I was editing it lol, btw I said use for I,v in pairs