This is a script I composed to change any character that joins the game's clothing:
plr.CharacterAdded:connect(function(char)
player.Pants.PantsTemplate = 182807730
player.Shirt.ShirtTemplate = 182807618
end)
Basically, when I try to run this, my character's clothing flashes grey (loading the texture I assume) then going to what my character is set to look like. (Not what the PantsTemplate / ShirtTemplate is set to in the script) What am I doing wrong

3 comments
can you post the full script.
Is this a script or a localscript?
It is a regular script, does it need to be a local script?