I'm pretty new to using module scripts but I have a table inside the module with a few details about that in the table however when I get the table from the local script I get this image of print Not sure how I can get it to return the correct table

Server Script

function addcmd(name,alias,perm,desc,func)
	cmds[#cmds+1]=
	{
		NAME=name;
		ALIAS=alias;
		PERM=perm;
		FUNC=func;
	}
	module[name] = {NAME = name, ALIAS = alias, PERM = perm, DESC = desc}
	module.howmany = module.howmany + 1
end

Local Script

print(table.unpack(required.commands))

Module Script

local commandslist = {
	commands = {},
	howmany = 0
}

return commandslist

2 comments

0

From what I've tested, there's no issue? I've inserted values and got it to return the proper table.The reason it prints that " " is because the table doesn't have any values in it.

0

Well it does so im not sure why its doing that