The script is a normal script and it's in a starter gui.

local plr = game.Players.LocalPlayer

script.Parent.MouseButton1Down:connect(function(hit)
  local h = hit.Parent:findFirstChild("Humanoid")
        if h ~= nil then
        local g = script.Parent 
        p = g.Pants:clone()
        s = g.Shirt:clone()
        p.Parent = plr.Character 
        s.Parent = plr.Character
        wait(1)
    end
end)