Why does my character's appearance not clear?

I made a quick script that clears my characters appearance, but it doesn’t do that at all…

function giveStats(Player)
	
end

function loadAppearance(Player, Character)
	Player:ClearCharacterAppearance()
end

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		if not Player:FindFirstChild("StatsTypes") then
			giveStats(Player)
			loadAppearance(Player, Character)
		else
			loadAppearance(Player, Character)
		end
	end)
end)

Your code is probably running so fast that it executes the function before player character is fully loaded so Player:ClearCharacterAppearance() doesn’t find anything to clear from player character. You should change Player.CharacterAdded event with Player.CharacterAppearanceLoaded event instead.

1 Like

I’ll give that a try again, thanks for the help.