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

How would I get the currently equipped clothes?

I am working on a game and it uses a StarterCharacter.

I can't simply use the default character as it is near impossible to efficiently remove packages for characters, as well as the fact that I'm using custom faces that aren't decals.

Any way to get the IDs of the currently equipped clothes/accoutrements?

1 answer

local function TakeDefault(torso)
	local player = game.Players:GetPlayerFromCharacter()
        local char = player.Character
	local hum = char.Humanoid
	for i,v in pairs(hum:GetChildren()) do
		v:Destroy()
		for i,v in pairs([Clothes]:GetChildren()) -- in [Clothes] put in the model name
			v:Clone().Parent = char
		end
	end
end

Hopefully this will fix your problem

5 comments

0

Like I said, since I have a StarterCharacter, the player's character is immediately replaced by game.StarterPlayer.StarterCharacter, so getting the clothes from the player's character and cloning them isn't an option.

0

no i would Remove the clothes of the character(Default)

0

Then you would insert the real clothes you want to put in the character

0

I want to put the player's clothes onto the character, but I need a way to get the IDs of them, for example, a web API of some sort.

0

oh

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