Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Clear players character?

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

✓ Accepted answer

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)

2 comments

0

Thanks lol

0

:)

This discussion is preserved as it was. New answers, comments, and votes are closed.