HumanoidDescription doesn’t apply clothing

Hi, Tophat here. I’m currently trying to apply clothing to a player’s character. Using the system I have that changes the appearance of players, and I’ve tried adding clothing to the HumanoidDescription used in it that makes the system work.

However, I have come across this annoying issue. When I tried testing this with pants, it gave me this warning (not an error) in the Output: Humanoid::ApplyDescription() Failed to load Pants, default applied. It then gives me default pants instead of the pants I intended to use.

This occurs both in Roblox and Studio. I’ve done a bit of research, and I can conclude that it should do this when clothing is unavailable/moderated. However, the pants I’m using are onsale, and not moderated. (Source: Battle Pants of Awesomeness, by Shedletsky. Costs 25 Robux.)

This is the properties of the HumanoidDescription I use: The pants are at the bottom. Converting to an asset link tells me that I cannot convert a string to an int64.

image

local HumDesc = script.Parent.Parent.Character.HumanoidDescription -- HumanoidDescription used.


script.Parent.Touched:Connect(function(part) -- Part is used, Player, Humanoid and Character all gotten from here.
	local Humanoid = part.Parent:FindFirstChild("Humanoid")
	if Humanoid then
		local Player = game.Players:GetPlayerFromCharacter(Humanoid.Parent)
		if Player.MembershipType ~= Enum.MembershipType.Premium then -- Originally supposed to be Premium Membership locked. Unlocked for bugtesting.
			Humanoid:ApplyDescription(HumDesc) -- Applies the description.
			local ExistingDescription = Humanoid.Parent:FindFirstChild("HumanoidDescription")
			if ExistingDescription then
				ExistingDescription:Destroy() -- Destroys current HumanoidDescription on the Player's Character.
			end
			local Description = script.Parent.Parent.Character.HumanoidDescription:Clone() -- Replaces the deleted HumanoidDescription.
			Description.Parent = Humanoid.Parent
		end
	end
end)

This error/warning doesn’t occur when I do not use clothing. It only occurs with clothing.

Image of what happens, also showing intended character for reference:
image

This is the last step to finish my game’s overhaul. Any and all help is appreciated! Thanks!

You’re trying to apply an image from the library, not a clothing item from the catalog! Perhaps changing Pants to the ID of a pants clothing item would fix the problem?

I used the Roblox Asset Id FROM the clothing’s catalog page, not the library. Do you mean I have to type out “rblxasset//:000000” or something?

As @ZoomSummit said, the Id is wrong, it is the Id of the image, not the pants, the correct one is this 1804768 (link)

1 Like