How do I create a part that gives the original players clothes and hats back?

I’m trying to create a game where the players avatar gets an attachments to its rig so it can be animated along with the new objects but I want to give this rig the original players clothes and accessories.
I was hoping someone could show me a script or a tutorial of how to make a part give a character the original clothes and accessories of the player. Thank you.

1 Like

walt!!1

local Players = game:GetService("Players")

local Part = script.Parent

Part.Touched:Connect(function(Basepart)
	local Character = Basepart.Parent
	
	if Character:FindFirstChildOfClass("Humanoid") then
		local Player = Players:GetPlayerFromCharacter(Character)
		local Humanoid = Character:FindFirstChildOfClass("Humanoid")
		
		if Player then
			local HumanoidDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)
			
			if HumanoidDescription then
				Humanoid:ApplyDescription(HumanoidDescription)
			end
		end
	end
end)

I’m not sure if I did it correct but I placed this script inside a part and when I touch it with my custom starter character is does nothing but when I use my normal character I get script outputs but nothing happens.

HumanoidDescriptions aren’t configured to be compatible with custom starter characters. What outputs did you see when you tried the script with a R6/R15 character?