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

Clear players character?

Asked by 8 years ago

It really should work from what I can tell. No output errors, just wanna clear hats and shirts and such from the players character. Someone help here i'm so lost?

game.Players.LocalPlayer:ClearCharacterAppearance() 

One line. Just a single line and it wont work. No errors, just nothing happens. It's in a local script in starterplayerscripts but I had it in startergui at one point too.

1 answer

Log in to vote
0
Answered by 8 years ago

Well, heres an alternative

game.Players.PlayerAdded:connect(function(player)
    for _,child in pairs(game.Workspace[player.Name]:GetChildren()) do
        if child:IsA("Hat") or child:IsA("Shirt") or child:IsA("Pants") then
            child:Remove()
        end
    end
end)
0
Thanks lol CrispyBrix 113 — 8y
0
:) thehybrid576 294 — 8y
Ad

Answer this question