How do I get rid of this error
I’m not sure how I can fix it, my keyboard is at this and when I click on the error in the output i get another return contents
local contents = {}
contents["Crates"] = 25
function contents:GetItemTypes()
local itemTypes = {
{
Rarity = {Name = "Common", Chance = 0.589, Color = Color3.fromRGB(0, 85, 127)};
Items = {
{Name = "Item1", ImageId = nil};
{Name = "Item2", ImageId = nil};
}
};
{
Rarity = {Name = "Uncommon", Chance = 0.300, Color3.fromRGB(43, 125, 43)};
Items = {
{Name = 'Item3', ImageId = nil};
{Name = 'Item4', ImageId = nil};
};
};
{
Rarity = {Name = "Rare", Chance = 0.100, Color3.fromRGB(210, 85, 0)};
Items = {
{Name = "Item5", ImageId = nil};
{Name = "Item6", ImageId = nil}
};
};
{
Rarity = {Name = "Legendary", Chance = 0.011, Color.fromRGB(170, 0, 0 )};
Items = {
{Name = "Item7", ImageId = nil}
}
};
}
for groupIndex, group in pairs(itemTypes) do
for i, item in pairs(group.Items) do
item.Groupindex = groupIndex
end
end
return itemTypes
end
return contents