BodyPackages ={ Combine = {["ModelName"]="" , ["Description"]="", ["Price"]=""}, HevSuit = {["ModelName"]="" , ["Description"]="", ["Price"]=""}, Everyday_Blue = {["Everyday_Blue "]="" , ["Description"]="", ["Price"]=""}, } print(BodyPackages [1]) -- It sould print table: (TableData) it just prints nil
You don't need to assign the inner tables to variables; it should just be
BodyPackages ={ {["ModelName"]="" , ["Description"]="", ["Price"]=""}, {["ModelName"]="" , ["Description"]="", ["Price"]=""}, {["Everyday_Blue "]="" , ["Description"]="", ["Price"]=""}, }
If you want to have the original variables still usable do it like this
Combine = {["ModelName"]="" , ["Description"]="", ["Price"]=""} HevSuit = {["ModelName"]="" , ["Description"]="", ["Price"]=""} Everyday_Blue = {["Everyday_Blue "]="" , ["Description"]="", ["Price"]=""}
BodyPackages={Combine,HevSuit,Everyday_Blue}