How to get a value in a table

I have a value in a table, but I don’t know how to get it how would I?

local HollowStats = {
	"Fishbone" == {
		"Health" == 0;
		"Reiatsu" == 0;
		"DamageScale" == 0;
	};
	
	"Menos" == {
		"Health" == 0;
		"Reiatsu" == 0;
		"DamageScale" == 0;
	};
	
	"Adjucha" == {
		"Health" == 0;
		"Reiatsu" == 0;
		"DamageScale" == 0;
	};
	
	"Vasto Lorde" == {
		"Health" == 0;
		"Reiatsu" == 0;
		"DamageScale" == 0;
	};
	
	
	"Menoscar" == {
		"Health" == 0;
		"Reiatsu" == 0;
		"DamageScale" == 0;
	};
	
	
	"Adjuchar" == {
		"Health" == 0;
		"Reiatsu" == 0;
		"DamageScale" == 0;
	};
	
	
	"Vastocar" == {
		"Health" == 0;
		"Reiatsu" == 0;
		"DamageScale" == 0;
	};
	
}

Lets say I wanted to get Fishbone health, how would I do that?

First off use dictionaries.
It would be like this

local HollowStats = {
	["Fishbone"] = {
		["Health"] = 0;
		["Reiatsu"] = 0;
		["DamageScale"] = 0;
	};
-- and so on
}
print(HollowStats.Fishbone.Health)
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.