Player character spawning with a rectangular head (need help!)

This Sometimes happen when i load the player’s character using :LoadCharacter()

i tried fixing it by adding a few lines to the script, removing the player’s packages or getting their avatar and reloading it didn’t fix it, here’s the script

wait(1)

	local function RemoveMeshes(Character)
		local Done = false
		while wait() do
			local Success, Error = pcall(function()

				local Humanoid = Character:WaitForChild("Humanoid")
				wait()
				local CurrentDescription = Humanoid:GetAppliedDescription()

				CurrentDescription.Head = 0
				CurrentDescription.Torso = 0
				CurrentDescription.LeftArm = 0
				CurrentDescription.RightArm  = 0
				CurrentDescription.LeftLeg = 0
				CurrentDescription.RightLeg = 0
				Humanoid:ApplyDescription(CurrentDescription)

				Done = true
			end)
			if Done == true then
				break
			end
		end
	end
				
	if Player1 then
		if Player1.Character then
			Player1:LoadCharacter()
			wait(0.1)
			local playersService = game:GetService("Players")
			local player = playersService[Player1.Name]

			local humDesc = playersService:GetHumanoidDescriptionFromUserId(Player1.UserId)
			player:LoadCharacterWithHumanoidDescription(humDesc)

			wait(0.1)
			if Player1 then
				if Player1.Character then
					RemoveMeshes(Player1.Character)
				end
			end
		end
	end

any help appreciated.

2 Likes

Try removing the while loop in the remove meshes function and waiting for the character to load with player1.CharacterAdded:Wait() since you’re gonna load them later

1 Like

I think this fixed it, i tested a few rounds and nothing unusual happened, thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.