Recently ive made a script where whenever someone joins a game, their avatar gets loaded into a position. I've noticed though that if people are wearing a shoulder accessory, it glitches ontop of their head. Any known fixes?
local Dummy = script.Parent
game.Players.PlayerAdded:Connect(function(player)
print(player.UserId)
if Dummy.Student1.Head.Locked == false then
Dummy.Student1.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId))
Dummy.Student1.Head.Locked = true
Dummy.Student1.Head.Transparency = 0
Dummy.Student1.Torso.Transparency = 0
Dummy.Student1["Left Arm"].Transparency = 0
Dummy.Student1["Right Arm"].Transparency = 0
Dummy.Student1["Left Leg"].Transparency = 0
Dummy.Student1["Right Leg"].Transparency = 0
Dummy.Student1.Value.Value = (player.UserId)
elseif Dummy.Student2.Head.Locked == false then
Dummy.Student2.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId))
Dummy.Student2.Head.Locked = true
Dummy.Student2.Head.Transparency = 0
Dummy.Student2.Torso.Transparency = 0
Dummy.Student2["Left Arm"].Transparency = 0
Dummy.Student2["Right Arm"].Transparency = 0
Dummy.Student2["Left Leg"].Transparency = 0
Dummy.Student2["Right Leg"].Transparency = 0
Dummy.Student2.Value.Value = (player.UserId)
end
end)
This goes on for 10 more students, so I shortened it.

2 comments
If anyone is gonna ask, I lock their head as an indicator that the slot is open. It's stupid but it works. I also have a seperate script so that when they leave, the head unlocks, it completely works, it's just the accessory problem. Im very proud of these two scripts :^)
I think it would be better putting in CharacterAdded, cause the character can not have even started loading when you call applydescription