How can I delete player face

I tried to make a script that delete player face when they join but its not working
Here’s the script

local function PA(player)
	local Character = player:Character
	local Head = Character.WaitForChild("Head")

	for i, v in pairs(Head:GetChildren()) do
		if v:IsA("Texture") then
			v:Destroy()
		end
	end
end

game.Players.PlayerAdded:Connect(PA)

I also tried this

local function PA(player)
	local Character = player.Character
	local Head = Character:FindFirstChild("Head")
	
	Head.face:Destroy()
end

game.Players.PlayerAdded:Connect(PA)
1 Like

Instead of Texture try Decal, all Roblox faces by default are Decals.

Why are you doing a in pairs when you could just do a find first child to find the face object?

1 Like

Oh yea and also the wait for child needs a : not a . to link the character wait for child.

I did but the script doesn’t recognize the character Head

 ServerScriptService.Script:3: attempt to index nil with 'WaitForChild'

I also tried FindFirstChild() but it didn’t work

sorry I miss type the script Ichange it but still not working

Do

local Head = Character:WaitForChild("Head")

as stated above.

I did but didn’t work thats why I tried in pairs

I accidentally write . instead of : but I change it and still not working

I don’t know why you need this, but It’s here a simple working for all players version.

game.Players.PlayerAdded:Connect(function(player)
   player.CharacterAdded:Wait()
   local character = player.Character
   local face = character.Head.face
   face:Destroy()
end)

I already tried and works fine

2 Likes

It work thanks I need this because I want to duplicate the player Head because the R6 face has low quality and the player face is blocking the other head face its hard to explain but thanks

1 Like