Well my answer most likely would be to change the shirt and pants texture. or to delete the current shirt and pants and then do
1 | local S = Instance.new( "Shirt" ) |
2 | local P = Instance.new( "Pants" ) |
then just do S.TextureId or whatever it and and use a string for your new ID.
as well as that I have tweeked your script a little concidering you did some weird things that I will explain below.
01 | game.Workspace.ChildAdded:connect( function (plr) |
02 | local player = game.Players.LocalPlayer |
04 | local playerinplayers = game.Players:FindFirstChild(name) |
05 | if playerinplayers ~ = nil then |
06 | playerinplayers.CanLoadCharacterAppearance = false |
08 | local bodycolors = Instance.new( "BodyColors" ,plr) |
09 | bodycolors.RightArmColor = BrickColor.new( "Pastel brown" ) |
10 | bodycolors.LeftArmColor = BrickColor.new( "Pastel brown" ) |
11 | bodycolors.LeftLegColor = BrickColor.new( "Dark stone grey" ) |
12 | bodycolors.RightLegColor = BrickColor.new( "Dark stone grey" ) |
13 | bodycolors.TorsoColor = BrickColor.Random() |
14 | bodycolors.HeadColor = BrickColor.new( "Pastel Brown" ) |
So on line 4 you used plr.Name in the parenthises when you already defined it so I replaced it with just name.
I would also recommend deleting the current body colors setting for instance new because that would make 2 bodycolor things inside the character thus confusing roblox. so you can have it so it removes the current body colors and then makes a new instance with these new colors.