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.
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:
This is the last step to finish my game’s overhaul. Any and all help is appreciated! Thanks!