Making a Transparent Avatar (Face not disappearing)

Hello, I am working on a tool script to make my avatar become transparent but I’m having trouble getting the face to disappear.
The Head disappears but the face remains? Any idea what I need to do to hide the face too?

local enabled = false
local plr = game.Players.LocalPlayer

script.Parent.Activated:Connect(function()
	if enabled == false then
		enabled = true
		for i,v in pairs(plr.Character:GetChildren()) do
			if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("UnionOperation") then
				if v.Name ~= "HumanoidRootPart" then
					v.Transparency = 0.9
				end
			end
			if v:IsA("Accessory") then
				v.Handle.Transparency = 0.9
			end
		end
       end
end)

And is there any other gotacha’s I need to be aware of? (like are UGC items also in special category?)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

1 Like

You can simply make the face transparent by changing the face Transparency property

1 Like

Yes, Just do:

if v.Name == "Head" then

      v.Face.Transparency = 1

end
3 Likes

2 Likes

Ok that worked, of course. But it turns out ‘face’ is lower case. Is that normal? (that’s probably where I was going wrong.

if v.Name == "Head" then
      v.face.Transparency = 1
end
2 Likes

Or this, so it won’t only remove the face, but every decal on the face, useful if you have multiple decals/faces on one head.

local Decals = Character.Head:GetChildren()

for i=1, #Decals do 
	if (Decals[i].className == "Decal" or Decals[i].className == "Texture") then 
		Decals.Transparency = 1
	end
end
1 Like