Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Clothes not changing when GUI button is clicked?

Asked by 9 years ago
function onButtonClicked()
    script.Parent.Parent.Parent.Parent.Parent.Character:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=99574860"
    script.Parent.Parent.Parent.Parent.Parent.Character:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=99575251" --change to the SHIRT you want to wear's id
end
script.Parent.MouseButton1Click:connect(onButtonClicked)

Answer this question