local Items = {Exterior = {}, House = {}, Purchases = {}}
for _, v in pairs(PlayersPlot.Plot:GetDescendants()) do
if v:IsA('BrickColorValue') then
local ExteriorData = {}
ExteriorData.Name = v.Parent.Name
ExteriorData.Color = (v.Value).Name
Items.Exterior[#Items.Exterior + 1] = ExteriorData
end
end
What I am trying to have it so it would look like this:
Exterior = {
Roof = 'Black',
Walls = 'White'
}
But it’s currently going like this
Exterior = {
{
Name = 'Roof',
Color = 'Black'
},
{
Name = 'Walls',
Color = 'White'
},
}
for _, v in pairs(PlayersPlot.Plot:GetDescendants()) do
if v:IsA('BrickColorValue') then
local ExteriorData = {}
ExteriorData.Name = v.Parent.Name
ExteriorData.Color = (v.Value).Name
Items.Exterior['Name'] = v.Parent.Name
Items.Exterior['Color'] = (v.Value).Name
end
end