local player = game.Players.LocalPlayer local color = BrickColor.new('Pastel brown') script.Parent.MouseButton1Down:connect(function() if player.Character then for i,v in pairs(player.Character:GetChildren()) do if v:IsA('BasePart') then v.BrickColor = color end end end end) local player = game.Players.LocalPlayer script.Parent.MouseButton1Down:connect(function() if player.Character:findFirstChild("Shirt") then player.Character.Shirt.ShirtTemplate="http://www.roblox.com/asset/?id=202704957" else local s = Instance.new("Shirt", player.Character) s.ShirtTemplate="http://www.roblox.com/asset/?id=202704957" end if player.Character:findFirstChild("Pants") then player.Character.Pants.PantsTemplate="http://www.roblox.com/asset/?id=204058688" else local p = Instance.new("Pants", player.Character) player.Character.Pants.PantsTemplate="http://www.roblox.com/asset/?id=204058688" end end)
FilteringEnabled is on. The point of this script is to change the appearance of a player. That works but one small problem. The players shirt and pants change but only on the players computer. So player2 or another person playing can only see their skin color change but the pants and the shirt would not change. I am sorry but this is really hard to explain.
The reason this isn't working is because with FilteringEnabled set to true, the client can not replicate, change, or add anything on the server. (See this wiki page) Because you are using a local script (which runs client side) to change the property of the character's shirt and pants objects, it doesn't affect the server.
If you can accomplish the task you want in a ServerScript, it would be easiest to do it that way. However, if you do need to use a LocalScript, I highly recommend RemoteEvents and RemoteFunctions.
Upon reading these articles, leave a comment if you need me to give you some help in order to set up a RemoteEvent or RemoteFunction.