local Library = loadstring(game:HttpGet("https://[Log in to view URL]"))() -- defining the gui library

local Pendulum = Library:New("catalog avatar")
local Exploit2 = Pendulum:NewTab("copy")

local copyoutfit = Exploit2:NewTextBar("user/display name (can shorten)", "user/display name (can shorten)", "", function(text)
    -- This function is now set to accept user input
end)

Exploit2:NewButton("copy outfit", "copy the outfit of player above (won't copy patterns)", function()
    local Players = game:GetService("Players")
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local CatalogGuiRemote = ReplicatedStorage:WaitForChild("CatalogGuiRemote")

    -- Function to find a player by partial display name
    local function getPlayerByPartialDisplayName(partialDisplayName)
        for _, player in ipairs(Players:GetPlayers()) do
            if string.find(player.DisplayName:lower(), partialDisplayName:lower()) then
                return player
            end
        end
        return nil
    end

    -- Function to copy outfit
    local function copyOutfit(targetPartialDisplayName)
        local localPlayer = Players.LocalPlayer
        local targetPlayer = getPlayerByPartialDisplayName(targetPartialDisplayName)

        if not targetPlayer then
            warn("Player with display name containing '" .. targetPartialDisplayName .. "' not found!")
            return
        end

        local targetCharacter = targetPlayer.Character
        if not targetCharacter then
            warn("Target player does not have a character!")
            return
        end

        local targetHumanoid = targetCharacter:FindFirstChildOfClass("Humanoid")
        if not targetHumanoid then
            warn("Target player does not have a Humanoid!")
            return
        end

        local targetHumanoidDescription = targetHumanoid:FindFirstChildOfClass("HumanoidDescription")
        if not targetHumanoidDescription then
            warn("Target player does not have a HumanoidDescription!")
            return
        end

        local rigType = targetHumanoid.RigType == Enum.HumanoidRigType.R15 and Enum.HumanoidRigType.R15 or Enum.HumanoidRigType.R6

        local args = {
            [1] = {
                ["Properties"] = {
                    ["Shirt"] = targetHumanoidDescription.Shirt,
                    ["Pants"] = targetHumanoidDescription.Pants,
                    ["HatAccessory"] = targetHumanoidDescription.HatAccessory,
                    ["HairAccessory"] = targetHumanoidDescription.HairAccessory,
                    ["FaceAccessory"] = targetHumanoidDescription.FaceAccessory,
                    ["NeckAccessory"] = targetHumanoidDescription.NeckAccessory,
                    ["BackAccessory"] = targetHumanoidDescription.BackAccessory,
                    ["FrontAccessory"] = targetHumanoidDescription.FrontAccessory,
                    ["WaistAccessory"] = targetHumanoidDescription.WaistAccessory,
                    ["LeftArmColor"] = targetHumanoidDescription.LeftArmColor,
                    ["RightArmColor"] = targetHumanoidDescription.RightArmColor,
                    ["LeftLegColor"] = targetHumanoidDescription.LeftLegColor,
                    ["RightLegColor"] = targetHumanoidDescription.RightLegColor,
                    ["HeadColor"] = targetHumanoidDescription.HeadColor,
                    ["TorsoColor"] = targetHumanoidDescription.TorsoColor,
                    ["Head"] = targetHumanoidDescription.Head,
                    ["Torso"] = targetHumanoidDescription.Torso,
                    ["LeftArm"] = targetHumanoidDescription.LeftArm,
                    ["RightArm"] = targetHumanoidDescription.RightArm,
                    ["LeftLeg"] = targetHumanoidDescription.LeftLeg,
                    ["RightLeg"] = targetHumanoidDescription.RightLeg,
                    ["GraphicTShirt"] = targetHumanoidDescription.GraphicTShirt,
                    ["BodyTypeScale"] = targetHumanoidDescription.BodyTypeScale,
                    ["HeightScale"] = targetHumanoidDescription.HeightScale,
                    ["WidthScale"] = targetHumanoidDescription.WidthScale,
                    ["DepthScale"] = targetHumanoidDescription.DepthScale,
                    ["HeadScale"] = targetHumanoidDescription.HeadScale,
                    ["ProportionScale"] = targetHumanoidDescription.ProportionScale,
                    ["WalkAnimation"] = targetHumanoidDescription.WalkAnimation,
                    ["RunAnimation"] = targetHumanoidDescription.RunAnimation,
                    ["IdleAnimation"] = targetHumanoidDescription.IdleAnimation,
                    ["JumpAnimation"] = targetHumanoidDescription.JumpAnimation,
                    ["FallAnimation"] = targetHumanoidDescription.FallAnimation,
                    ["ClimbAnimation"] = targetHumanoidDescription.ClimbAnimation,
                    ["SwimAnimation"] = targetHumanoidDescription.SwimAnimation,
                    ["MoodAnimation"] = targetHumanoidDescription.MoodAnimation,
                    ["Face"] = targetHumanoidDescription.Face
                },
                ["Action"] = "CreateAndWearHumanoidDescription",
                ["RigType"] = rigType
            }
        }

        CatalogGuiRemote:InvokeServer(unpack(args))
    end

    -- Use the text from the text bar for the partial display name
    copyOutfit(copyoutfit.Text)
end)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: