So I’m making a roleplay game that has an avatar editor. However, I’m having trouble resetting the player’s appearance. Here is my code right now for resetting it.
elseif type == "Reset" then
player.FaceId.Value = ""
player.ShirtId.Value = ""
player.PantsId.Value = ""
local humanoiddes = character.Humanoid.HumanoidDescription
--character.Head.face.Texture = "rbxassetid://".. humanoiddes.Face
local URI = clothingchange(humanoiddes.Shirt,"Shirt")
character.Shirt.ShirtTemplate = URI
URI = clothingchange(humanoiddes.Pants,"Pants")
character.Pants.PantsTemplate = URI
character.Humanoid:ApplyDescription(humanoiddes)
end