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?
✓ ANSWER ACCEPTED
How do people make player's normal roblox clothes get replaced with custom ones?
1 answer
✓ Accepted answer
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Thx!
Your welcome. You can look at the links below to study them.