Spawning with an invisible face

Hey! I’m currently trying to make my characters spawn without a face decal but every time I try it give me errors. I’ve tried to set the transparency of the decal to 1 and in another script I tried destroying it but it didn’t work. Any ideas?

It would be useful to see the code you are using to do this and whether or not each script is a LocalScript or a normal script, as we could better help you fix your problem. :slight_smile:

Also, put the code between two " ``` " characters in your reply so that the code will appear more properly formatted.

I’m using a local script and I don’t have the code for the destroy script anyone ( I deleted it and tried the transparency version)

here’s the transparency code

local player = game.Players.LocalPlayer
  if player.Character then
	player.Head.Face.Transparency = 1
end

note that I’m still new to scripting

You’re trying to get the Head through the player, not the character, try this instead:

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Head = Character:FindFirstChild("Head")
local Face = Head:FindFirstChild("face") or Head:FindFirstChild("Face")
Face.Transparency = 1

If you want to apply this every time the character respawns, try this:

local Player = game.Players.LocalPlayer

Player.CharacterAdded:Connect(function(Character)
    local Head = Character:FindFirstChild("Head")
    local Face = Head:FindFirstChild("face") or Head:FindFirstChild("Face")
    Face.Transparency = 1
end)

I hope this resolves your issue.

1 Like

The first script worked great, thank you!