How do I save Clothing/Anecciesorries in a dataStore?

I made a customization system where you can choose your clothing and things, but I want to make it so it’ll save when you leave. How can I save it?
The tutorial I used for DataStore: DataStore (Saving & Loading Player Data) - Roblox Scripting Tutorial - YouTube


MyDataStore: DataStore Scr -

CustomizationLocalScript: CharacterCustomization LocalScript -


local CustomRemote = game:GetService("ReplicatedStorage"):WaitForChild("Customaztion"):WaitForChild("Remotes").RemoteEvent

CustomRemote.OnServerEvent:Connect(function(Player, ShirtTemplate, PantsTemplate)
	local Character = Player.Character
	Character.Shirt.ShirtTemplate = ShirtTemplate
	Character.Pants.PantsTemplate = PantsTemplate

Assuming that you know how to store data, you can similarly store the id of the clothing and accessories and use that information to load the outfit the next time they join back.

You can’t save instances in the datastore. In this case, your best option will be to save the Id of the clothing.