How would I go about making character data slots?

So I created a character customization system and I want the characters to have outfit save slots. (Example: I saved 2 hats on slot 1, saved 1 hat on slot 2, and 1 hair in slot 3. Then when the player joins back it saves all in that order.) .

I don’t really know how to go about doing this ‘slot’ system and how would I let the script know which outfit slot to add things in?

I’m not looking for any script I’m just looking for someone to give me an idea of how I could achieve this.

this is what I predicted in my mind so far

local Slots = {
["Outfit1"] = {--save what the characters wearing in these slots}
["Outfit2"] = {}
["Outfit3"] = {}
}

You need to do a Datastore for each clothing, so it loads it on the correct player when clicked

I already achieved that. I just need to make outfit slots now.

I solved it by using conditional statements.