So i have a script that is like a inventory i can equip and unequip but im trying to make it that when you click on the item it shows the item in a info which i have it shows the name but the rarity does not change nor the backgroundcolor and when i try change it i always get returned with nil or expected brick color, the color and name trying to retieve is from a table
what is your code? we won’t be able to debug it without your code
config.RarityColor[pet.Parent.Name] = selectFrame.BackgroundColor3
config.RarityOrder[pet.Parent.Name] = selectFrame.PetRarity
currently it gives no errors but remains to not change
Can you show your entire script?
Sounds like the table isn’t set up right or it’s not reading the table right.
Either way, everything is a guess without seeing the script.
Need to see how the table is being put together and how it’s being read.
Then how you’re implementing all this and for what.
local config = {}
config.MaxPetsInventory = 200
config.MaxPetsEquipped = 5
config.RarityOrder = {
"Common",
"Uncommon",
"Rare",
"Epic",
"Legendary",
"Mythical",
}
config.RarityColor = {
Common = Color3.fromRGB(142, 144, 159),
Uncommon = Color3.fromRGB(75, 216, 68),
Rare = Color3.fromRGB(58, 193, 255),
Epic = Color3.fromRGB(170, 0, 255),
Legendary = Color3.fromRGB(255, 33, 63),
Mythical = Color3.fromRGB(228, 20, 255),
}
return config
this is what i use to change the textlabel of the one show but not the background one
config.RarityColor[pet.Parent.Name]