So currently I am giving players a package on spawn, but for some reason it no longer works, and is very inefficient, There is a bug with players loading in and it not detecting playeradded? But I am not sure what do at this point.
There’s a chance that the script containing PlayerAdded event connection will not load before the first player joins so you have to do something like that at the end of the script:
for i,v in pairs(game:GetService("Players"):GetChildren()) do
-- here perform the function, that PlayerAdded connection is supposed to do
end
You’re not giving minimal context and zero code so we can only help you so much - vague details get a vague answer.
Try a HumanoidDescription.
Im not experienced at all with humanoid description, any help with that?
So I put this together, but it does not work?
game.Players.PlayerAdded:Connect(function(player) player.CharacterAppearanceLoaded:Connect(function(character) if player:WaitForChild("leaderstats"):WaitForChild("Gender").Value == 2 then local humanoid = character and character:FindFirstChild("Humanoid") if humanoid then local descriptionClone = humanoid:GetAppliedDescription() descriptionClone.Torso = 376532000 descriptionClone.Head = 86500008 descriptionClone.LeftArm = 376530220 descriptionClone.RightArm = 376531012 descriptionClone.LeftLeg = 376531300 descriptionClone.RightLeg = 376531703 humanoid:ApplyDescription(descriptionClone) end end end) end)
I believe you got the ID wrong for the Head.
Is there any output/error? Are you sure CharacterAppearanceLoaded (you should just use CharacterAdded) fired? Are you sure each conditional statement passed? Did you look on the character’s HumanoidDescription and see any changes to the Torso/Head/LeftArm/RightArm/LeftLeg/RightLeg properties?
I removed the head part completey, from what I see there are no output errors, and im not completely sure let me look.
Try setting CharacterAutoLoads to false in the Players service and use the following to load the character with the appearance.
local humanoidDescription = Instance.new("HumanoidDescription")
humanoidDescription.Torso = 376532000
humanoidDescription.Head = 86500008
humanoidDescription.LeftArm = 376530220
humanoidDescription.RightArm = 376531012
humanoidDescription.LeftLeg = 376531300
humanoidDescription.RightLeg = 376531703
player:LoadCharacterWithHumanoidDescription(humanoidDescription)
Um… Im not quiet sure what happend, but the game isn’t loading in, and im getting an infinite yield on tools waiting for "Workspace:WaitForChild(“Pooglies”)?? So I am not quiet sure whats going on.
So I didnt see your turn off autoload, but now that i did, the character does not load. and the intro I have does not finish.
Load the Character first with the HumanoidDescription, then run the intro along with other code. Otherwise, you may run into issues, if that may be the case.
So I whipped this up, but I have no idea why it isn’t working??
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character and character:FindFirstChild("Humanoid") if humanoid then local descriptionClone = humanoid:GetAppliedDescription() descriptionClone.Torso = 376532000 descriptionClone.LeftArm = 376530220 descriptionClone.RightArm = 376531012 descriptionClone.LeftLeg = 376531300 descriptionClone.RightLeg = 376531703 descriptionClone.Head = 2432102561 humanoid:ApplyDescription(descriptionClone) end end) end)
Im getting a “Humanoid:ApplyDescription() DataModel was not available” error
You could always try and insert the package assets into the startercharacterscripts, and you can then find every child of the character that isnt the name of one of the package assets and destroy it.
But any reason why the script above might not be working?