so player clicks the buttons and changes his clothes But this Local script is not working. Local Script Is Not Mine. But i tried to fix still dont works so i came here to ask for help.
shirtid = "http://www.roblox.com/asset/?id=478566599"
pantsid = "http://www.roblox.com/asset/?id=54361253"
button = script.Parent
button.MouseButton1Click:Connect(function()
player = game.Players.LocalPlayer
char = player.Character
if char:findFirstChild("Shirt") then
char.Shirt.ShirtTemplate = shirtid
else
a = Instance.new("Shirt", char)
a.Name = "Shirt"
a.ShirtTemplate = shirtid
end
if char:findFirstChild("Pants") then
char.Pants.PantsTemplate = pantsid
else
b = Instance.new("Pants", char)
b.Name = "Pants"
b.PantsTemplate = pantsid
end
end)

3 comments
Is this a script or a Localscript?
Make sure to add a line that tells the system what "mouse" is
what u mean? mouse is..