The Loadcharacterlayeredclothes option only shrinks down the layered clothing, so if in my game, you shrink down, the clothing becomes visible again. As this:
I have been using this script as a temporary solution the last few months as there was no way to remove layered clothing back then. Only this script removes ALL accessories. including hair and body accessories. I only want to remove 3D clothes as it is very broken for the mechanics my game holds.
local layers = {
Enum.AccessoryType.Jacket,
Enum.AccessoryType.Shorts,
Enum.AccessoryType.Eyebrow,
Enum.AccessoryType.Pants,
Enum.AccessoryType.Shirt,
Enum.AccessoryType.TShirt,
Enum.AccessoryType.Eyelash,
Enum.AccessoryType.Sweater,
Enum.AccessoryType.Unknown,
Enum.AccessoryType.LeftShoe,
Enum.AccessoryType.RightShoe,
Enum.AccessoryType.TeeShirt,
Enum.AccessoryType.DressSkirt
}
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
task.wait(2)
for _,thing in character:GetDescendants() do
if thing:IsA("Accessory") then
if table.find(layers,thing.AccessoryType) ~= nil then
thing:Destroy()
end
end
end
Your script will only work on the client-side, if you want to remove all 3D clothes for all players in the game, you should use a server-side script. Here’s a simple example of how you might do this:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAppearanceLoaded:Connect(function(character)
for _, accessory in ipairs(character:GetChildren()) do
if accessory:IsA("Accessory") and accessory:FindFirstChild("Handle") then
local humanoidPart = accessory.Handle:FindFirstChildWhichIsA("Humanoid")
if humanoidPart then
accessory.Handle:ClearAllChildren()
end
end
end
end)
end)
Quick tip: if you shrink plr with Model:Scale(ur_factor), layered clothes will be scaled too! There will be issues with camera tho, so you might consider writing your own scriptable camera that will act like normal camera with character of any size.
Hey, I have tried this script and it seems it doesnt work, are the locations right? A normal script inside StarterCharacterScripts and in that the script you provided, the accessories dont get removed anymore but so do the 3D clothes