Okay so this local script is in a textbutton, which is part of a frame in a screenGUI, which in starterGUI. It is supposed to give clothes when you click it but it isn't doing anything when I test. Anyone know?
script.Parent.MouseButton1Down:connect(function()
playername = script.Parent.Parent.Parent.Parent.Name
player = Workspace:FindFirstChild(""..playername.."")
if player ~= nil then
player:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=304161831" -- Pants ID here
player:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=304161802"-- Shirt ID here
end
end)

3 comments
It still didn't work but there was an output error when I did it: Players.Player.PlayerGui.ClothingGUI.Frame.TextButton.LocalScript:7: ')' expected (to close '(' at line 3) near 'end'
He has one more end than he needs to have in the script. Remove the end of line 6 and the script should work.
Thanks