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

How would I get the currently equipped clothes?

Asked by
Xiousa 156
7 years ago

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

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago
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

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. Xiousa 156 — 7y
0
no i would Remove the clothes of the character(Default) saSlol2436 716 — 7y
0
Then you would insert the real clothes you want to put in the character saSlol2436 716 — 7y
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. Xiousa 156 — 7y
0
oh saSlol2436 716 — 7y
Ad

Answer this question