I'm attempting to make a GUI in which a player can enter an asset ID of a shirt *inside a textbox and then press a textbutton for it load on the players character, however I'm stuck. Anyone got an idea?
button = script.Parent
shirtid = script.Parent.Parent.ShirtID
plr = game.Players.LocalPlayer
char = plr.CharacterAdded:wait() or plr.Character
button.MouseButton1Down:connect(function()
for i,v in pairs (char:children()) do
if v:IsA("Shirt") then
v:Destroy()
end
end
local shirt = Instance.new("Shirt", char)
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=".. shirtid.Text
end)

3 comments
u doing it via textbox?
Yes
if sum is not working hmu