I made a fully function GUI that gives you clothes depending on which button you click on. The only thing is, the clothes dont show server wide. What I mean by this is if player 1 clicked on shirt 1 then he would see the shirt on his screen, but player 2 would see player 1's default clothes. I have tried changing the script from a local script to just a normal script but then it break completely. Heres an example of the script (It is inside of a text button and local script)
local playername = game.Players.LocalPlayer.Name
local player = workspace:FindFirstChild(""..playername.."")
local ShirtID = "http://www.roblox.com/asset/?id=873496662"
local PantsID = "http://www.roblox.com/asset/?id=873589284"
function shirthing()
player:FindFirstChild("Shirt").ShirtTemplate = ShirtID
player:FindFirstChild("Pants").PantsTemplate = PantsID
end
script.Parent.MouseButton1Down:connect(shirthing)

3 comments
How would I go about doing this for multiple text buttons? Would I have to repeat the script over and over?
kind of. and if you want to, in the fireserver parenthesis, add the shirtID and pantsID parameters
ive modified the script so it works for multiple.