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
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”))
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
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.
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.
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.