How to make a reset clothes button?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I have multiple buttons that players can step on which changes their clothes and I want to make a button that if a player touches, it then resets their clothes to what their avatar was wearing.

  2. What is the issue? Include screenshots / videos if possible!
    I don’t know how to do it, I have tried many things.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried YT and Devforum

You can get HumanoidDescription from Players service that have user Shirt and Pants id

1 Like
local resetButton = script.Parent
local Debounce = false
local function onButtonTouched(otherPart)
	local character = game.Players:GetPlayerFromCharacter(otherPart.Parent)
	if character and Debounce == false then
		local humanoid = character:FindFirstChild("Humanoid")
		if humanoid then
			Debounce = true
			-- Stores the original appearance
			local originalAppearance = humanoid:GetAppliedDescription()

			-- Remove all current clothing
			for _, child in pairs(character:GetChildren()) do
				if child:IsA("Clothing") then --child:IsA("Accessory") or child:IsA("Clothing")

			-- Apply the original appearance
			Debounce = false

1 Like

Ill try using this and ill get back to you and tell you if this works

1 Like

I tested the script and noticed that it does not work, I tried to modify it but could not. So I tried another much simpler way that should fit your needs

debounce = false
	if debounce == false then
		debounce = true
		local player = game.Players:GetPlayerFromCharacter(hit.Parent)
		local character = player.Character
		local cframe = character.HumanoidRootPart.CFrame
		player.Character.HumanoidRootPart.CFrame = cframe
		debounce = false

See the problem is that i don’t want it to reset ur character