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

How do people make player's normal roblox clothes get replaced with custom ones?

Asked by 9 years ago

I just wanna know. I could just go into their character and destroy their normal clothes, but they all have different names. How do people do it?

1 answer

Log in to vote
0
Answered by 9 years ago

Use the player and character added event. Then you could use IsA().

game.Players.PlayerAdded:connect(function(plyr) --When the player joins the game...
    plyr.CharacterAdded:connect(function(char) --when the players character loads
        local clothes = char:GetChildren() --Get the character children
for i = 1, #clothes
if clothes[i]:IsA("Clothing") then --Gets shirt and pants
if clothes[i].Name == "Shirt" then --Gets shirt
Shirt.ShirtTemplate  = ShirtIdHere --The shirt id goes there.
elseif clothes[i].Name == "Pants" then --Gets pants
clothes[i].PantsTemplate = PantsIdHere --Pants ID go here.
end end end end) end) --End.

Clothing, PlayerAdded, CharacterAdded, :IsA().

0
Thx! Operation_Meme 890 — 9y
0
Your welcome. You can look at the links below to study them. EzraNehemiah_TF2 3552 — 9y
Ad

Answer this question