Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does the character's appearance not clear?

I'm trying to clear the players appearance but nothing happens?

	Player.CharacterAdded:Wait()
	if game:GetService("Players"):FindFirstChild(Player.Name) and Player.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 and Player.Character.Humanoid.Health > 0 then
		Player:ClearCharacterAppearance()
		print("Player cleared")
	end

I'm using function onPlayerEntered(Player) to find out who the player is. since I'm trying to clear the appearance on join

1 comment

0

Can you post the entire script? Also, does "Player cleared" print in the output?

1 answer

I guess you'll have to do it manually:

game.Players.PlayerAdded:Connect(function(Player)
    local Character = Player.Character or Player.CharacterAdded:Wait()
    for _, Object in pairs(Character:GetDescendants()) do
        if Object:IsA("Accoutrement") or Object:IsA("Shirt") or Object:IsA("Pants") or Object:IsA("CharacterMesh") or Object:IsA("BodyColors") or Object:IsA("ShirtGraphic") or (Object:IsA("Decal") and Object.Parent.Name == "Torso") then
            Object:Destroy()
        end
    end
end)

This does not remove R15 packages. You can go into game settings and disable R15 packages in the Avatar section manually. This also does not clear faces.

If this helped, upvote/accept it! Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.