So basically when a player joins my game I am trying to default them to normal body parts. "The normal cubical ones". To do this I am cloning their current HumanoidDescription and then changing all the bodyType values to 0. But I came to a problem for certain people with "special" bodyTypes, it keeps killing them every time I :ApplyDescription()

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAppearanceLoaded:Connect(function(Character)
		wait(3)
		local Humanoid = Character and Character:FindFirstChild("Humanoid")
		local HumDesc = Humanoid:FindFirstChild("HumanoidDescription")
		HumDesc.Head = 0
		HumDesc.LeftArm = 0
		HumDesc.LeftLeg = 0
		HumDesc.RightArm = 0
		HumDesc.RightLeg = 0
		HumDesc.Torso = 0
		Humanoid:ApplyDescription(HumDesc)
	end)
end)

Does anyone know why it kills certain people or is it just a bug I have to report?

Or is there another way to achieve what I am doing?

2 comments

0

I think there's something about the head, left arm, right arm, left leg, right leg and torso. There's something about those 0s I guess..

0

You can add a custom character model in the StarterPlayer (name it StarterCharacter), and then maybe change the appearance to the original character's through scripting