Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to remove make a script that removes the face from the player that joins the game? [closed]

Asked by 5 years ago

I tried to do the script, but noone of them worked, please give me a script.

Closed as Not Constructive by Leamir, xPolarium, and User#23365

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 5 years ago

This script will remove the player's face even after they respawned.

local Players = game:GetService("Players");


function removeFace (character)
    local head = character:WaitForChild("Head")
    if not head then return false end

    for num, obj in pairs(head:GetChildren()) do
        if obj:IsA("Decal") then
            obj:Destroy()
        end
    end
end

Players.PlayerAdded:Connect(function(player)
    player.CharacterAppearanceLoaded:Connect(function(character)
        removeFace(character);
    end)
end)
Ad