local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CatalogGuiRemote = ReplicatedStorage:WaitForChild("CatalogGuiRemote")
-- Function to find a player by display name
local function getPlayerByDisplayName(displayName)
for _, player in ipairs(Players:GetPlayers()) do
if player.DisplayName == displayName then
return player
end
end
return nil
end
-- Function to copy outfit
local function copyOutfit(targetDisplayName)
local localPlayer = Players.LocalPlayer
local targetPlayer = getPlayerByDisplayName(targetDisplayName)
if not targetPlayer then
warn("Player with display name '" .. targetDisplayName .. "' 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 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"] = Enum.HumanoidRigType.R6
}
}
CatalogGuiRemote:InvokeServer(unpack(args))
end
-- Example usage
-- To call the function, replace "TargetDisplayName" with the actual display name of the player
copyOutfit("Shr1mpy")
To embed this project on your website, copy the following code and paste it into your website's HTML: