I made a script that changes the appearance of the character but the character does not change on another players computer. This is my code as below
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)

1 comment
It does not. It only changes skin color but not the clothing