How to disable layered clothing completely

I’ve disabled the check in starter player but the game still renders the layered clothes into the player, just really small, but because my game has player size changing mechanics, when I’m small it looks like this:
image
So I was wondering how to remove it completely

This is the only solution to your problem, if you find it to be a bug then report it to this post

1 Like

Change Workspace.MeshPartHeadsAndAccessories to Disabled, it (should) remove layered clothing completely if the setting in StarterPlayer isn’t removing it

image

1 Like

It’s disabled and layered clothing is still there when I get smaller

I don’t know if you solved this yet, but here’s my solution. Layered clothing is an Accessory. It have a property of AccessoryType. You can tell which one is a layered clothing. Put a Script inside the StarterCharacterScripts.

task.wait(2) -- just wait a little bit for character's parts to load

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
	
}

for _,thing in script.Parent:GetDescendants() do
	if thing:IsA("Accessory") then
		if table.find(layers,thing.AccessoryType) ~= nil then
			thing.Handle:Destroy()
		end
	end
end
1 Like

When i spawn in i still have layered clothing on me

I’m not sure. If you put it in StarterCharacterScripts, the script should rerun everytime the character respawns.

In the script, instead of thing.Handle:Destroy()
remove the Handle and just do: thing:Destroy()

ETA: I put on a layered jacket and play. It removes my jacket. I reset the character and it removes it, too, when I respawn.

its in a server side script right? i dont get why its not working

task.wait(2) -- just wait a little bit for character's parts to load

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

}

for _,thing in script.Parent:GetDescendants() do
	if thing:IsA("Accessory") then
		if table.find(layers,thing.AccessoryType) ~= nil then
			thing:Destroy()
		end
	end
end

Yes, it’s a regular server side Script.

i guess my roblox is broken, the layered clothing is so annoying

its not even on my character correctly, its deformed and outside of me, i think this is because of my previous attempts to remove it

Try the StarterPlayer’s property LoadCharacterLayeredClothing back to Default and just use the script to remove the layered clothing.

yea i did that because i thought that was the issue too, it still happens, i cant find any script doing it, mainly because there are alot of scripts in my game already

Okay, this also works for me with LocalScript. Delete that Script and try it in a LocalScript inside StarterCharacterScripts:

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

i still have it:
image

How are you changing the size of your character? I morphed into your avatar and the layered clothing scaled to the size of the small avatar then after the 2 seconds, the layered clothing got removed. Actually, it’s 5 seconds because I added a little bit more time for the morph to load.

Here’s how I tested with your avatar and changing the size of the character. It’s a regular server Script inside StarterCharacterScripts:

local des = game.Players:GetHumanoidDescriptionFromUserId(98053578)

local hum = script.Parent:WaitForChild("Humanoid")
hum:ApplyDescription(des)

hum:WaitForChild("BodyDepthScale").Value = 0.1
hum:WaitForChild("BodyHeightScale").Value = 0.1
hum:WaitForChild("BodyWidthScale").Value = 0.1
hum:WaitForChild("HeadScale").Value = 0.1

i think one of my previous attempts is in the way of this, i cant find it as i have alot of scripts and i went over them already and couldnt find it, i tried alot of things so i think thats the problem

If you don’t mind, you can add me to team create to help see your scripts. If you scale your avatar to be small properly, you won’t need to remove layered clothing.

1 Like

hey, i just published an update on my game and now it does work, only problem is if you have layered clothes it removes all accessories. so my hair and so on too

image
Isnt there a button…