Weird problem with HumanoidDescription

Hello, currently i’m having a problem with HumanoidDescriptions, the script works with no Errors, however, the character doesn’t get their package removed, neither the specified accesories, which is curious, because if i replace the ID with an Item ID, the item gets applied, however, if the ID is 0 nothing changes from the character, it still loads with all the accesories and current package, i just want to remove the character package and Back / Front / Waist / Shoulder accesories, here’s the script:

local Players = game:GetService("Players")

local function removeBundles(char)
	local hum = char.Humanoid
	local desc = hum:GetAppliedDescription()
	desc.Head = 0
	desc.LeftArm = 0
	desc.LeftLeg = 0
	desc.RightArm = 0
	desc.RightLeg = 0
	desc.Torso = 0
	desc.BackAccessory = 0
	desc.FrontAccessory = 0
	desc.ShouldersAccessory = 0
	desc.WaistAccessory = 0
	
	hum:ApplyDescription(desc)
end

Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		char.AncestryChanged:Wait()
		removeBundles(char)
	end)
end)

I did look through the DevForums, and also got help from @XAXA, who answered a post about this too, however, the problems seems to be only happening for me? i’ve tried doing this in an empty place. Thanks in advance :smiley:

You cant put 0 or else it would be default avatar so make the 0’s a valid number

I think… he’s… making it… so it removes… the package…

1 Like

Yes, that’s what i’m trying, but it just doesn’t work for some reason, nothing on the outpot either.

1 Like

you can look in @vCaffy Dungeon Quest When they start there avatar is default

Why are you doing char.AncestryChanged when the character is added? The player’s character is added, meaning it is added to the workspace. You should also make it so the character waits for the child humanoid. (Char:WaitForChild(“Humanoid”))

it should be an attachment i checked right here in accessories Accessory | Documentation - Roblox Creator Hub

What? Why are you bringing in accessories? This has nothing to do with the problem.

XAXA linked me to this thread, which states the character loading order is:

1.  Call LoadCharacter
2.  Player.Character is set
3.  CharacterAdded fires
4.  Player.Character changed event
5.  Character appearance is initialized
6.  CharacterAppearanceLoaded fires
7.  Character parented to DataModel
8.  Character rig built/character scaled
9.  Character is cframed to spawn location
10. LoadCharacter returns

Also, the weird thing is that if i type an actual Item ID, it does actually get applied to the character… i just don’t get it xD

1 Like

its about a players parts so u cant unless u got a package?

He linked you to a thread, yes, which states how the character loading order is. I don’t see anywhere having to do with .AncestryChanged. CharacterAdded basically means the character is added to the workspace, meaning you don’t have to wait for the ancestry to be changed or anything of the sort. The character is made, therefore you can call it.

I know, but look at the loading order, when CharacterAdded fires, it doesn’t get loaded into the DataModel at that moment, it does 4 steps later. I already did what you’re mentioning, and that does get an Output error, which is basically that the character isn’t parented to the DataModel.

i think in number 4 and 5 are when the character changes its appearance?

Is the output error due to the humanoid not being created yet?

ur pretty much setting their character to no accessories or bold

It’s " Humanoid::ApplyDescription() DataModel was not available", i did try using WaitForChild and such for the Humanoid, i tried everything, and again, the weird thing is that using an actual item ID works, it just doesn’t work if the ID is set to 0, it doesn’t remove the packages and accesories, it just stays the same.

This is exactly what i’m trying to do

Then add waits. Waits could most likely solve your problem, if the character model isn’t loading, then just add a wait(.1) or so.

Waits didn’t work either… the same thing happens, and sometimes the character also appears black when using waits, i’m starting to think this is rather a bug.

Okay. Try changing the ancestrychanged to plr.CharacterAppearanceLoaded:Wait(). This might be able to solve your problem.

1 Like

There we go, it worked! i tried doing that before too, but maybe i was doing it wrong; here’s the change:

Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAppearanceLoaded:Connect(function(char)
		removeBundles(char)
	end)
end)