How to save character outfit and load it whenever?

Hi so I’m currently trying to make a system where I can simply just save and store a players original outfit from their avatar and load it in whenever I need to.

I checked on the API and it talks about using Humanoid:GetAppliedDescription to get the player’s current outfit but I can’t find ANY examples on how to use this, save it and load it back into the character.

In other terms, if I can get the players outfit and save it, whenever I change the players avatar (like for example turn them all pink and remove their clothes and add a hat) I can at any time, change it back to their default outfit.

I hope I explained it well, any help is appreciated!

2 Likes

make a data store with strings. and have the clothing id save and change the cloths on click of a button.

I’m not sure how I would go about this, could you explain it in further details?

i would just watch a youtube video. theres multiple ones on datastores, or just straight up watch a video on character customization. i dont feel like explain datastores there alot into them sorry.

You could research more into HumanoidDescriptions to figure out your issue.

Also you could use this function I made based off of Jelleys Idea:
Make sure API services are on.

local datastoreservice = game:GetService("DataStoreService")
local storeCharacter = datastoreservice:GetDataStore("CharacterLook")

function store(clotheID, pantsID, key)
	local data = {clotheID, pantsID}
	
	local success, errormessage = pcall(function()
		storeCharacter:SetAsync(key, data)
	end)
end
1 Like

I recommend you store with userid:
An example of which would be:

--for example:
store(24892845, 32939753, 29842894) -- first is shirt id, second is pants id, third is the users player userid
1 Like

thank you for this, i’ll work with this when I can. So sorry for the late reply, I just kind of gave up on this idea but I’ll give it a try :smiley:

1 Like