Im trying to make a script so when you click a GUI it will put shirts and pants on your character
This is what I have right now
shirtid = "http://www.roblox.com/asset/?id=146978987"
pantsid = "http://www.roblox.com/asset/?id=54361253"
button = script.Parent
button.MouseButton1Click:conect(function()
if hit.Parent:findFirstChild("Humanoid")then
char = hit.Parent
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
end)

1 comment
?