1('hi somebody'):sub(0.0)2local plrs = game:GetService("Players")3local rs = game:GetService("ReplicatedStorage")45local function rgb(c) return {6 r = math.floor(c.R * 255),7 g = math.floor(c.G * 255),8 b = math.floor(c.B * 255),9 IsRGBTable = true}10end1112local function vector(v)13 return {14 X = v.X,15 Y = v.Y,16 Z = v.Z,17 Vector3 = true18 }19end2021local function getLayeredAccessories(desc)22 local result = {}2324 for _, accessory in desc:GetAccessories(true) do25 if accessory.IsLayered then26 table.insert(result, {27 Rotation = vector(accessory.Rotation),28 AssetId = accessory.AssetId,29 AccessoryType = accessory.AccessoryType.Name,30 Position = vector(accessory.Position),31 Order = accessory.Order,32 IsLayered = true,33 Puffiness = accessory.Puffiness,34 Scale = vector(accessory.Scale)35 })36 end37 end38 return result39end4041local function copy(targetPlayer)42 if not targetPlayer or not targetPlayer.Character then return end4344 local h = targetPlayer.Character:FindFirstChildOfClass("Humanoid")45 if not h then return end4647 local desc = h:GetAppliedDescription()4849 local wear = {{50 ["Properties"] = {51 ["WalkAnimation"] = desc.WalkAnimation,52 ["MoodAnimation"] = desc.MoodAnimation,53 ["Face"] = desc.Face,54 ["ProportionScale"] = desc.ProportionScale,55 ["ClimbAnimation"] = desc.ClimbAnimation,56 ["Shirt"] = desc.Shirt,57 ["FaceAccessory"] = desc.FaceAccessory,58 ["RightArmColor"] = rgb(desc.RightArmColor),59 ["TorsoColor"] = rgb(desc.TorsoColor),60 ["RightLegColor"] = rgb(desc.RightLegColor),61 ["LeftLegColor"] = rgb(desc.LeftLegColor),62 ["LeftArmColor"] = rgb(desc.LeftArmColor),63 ["HeadColor"] = rgb(desc.HeadColor),64 ["HairAccessory"] = desc.HairAccessory,65 ["RightArm"] = desc.RightArm,66 ["Head"] = desc.Head,67 ["FallAnimation"] = desc.FallAnimation,68 ["DepthScale"] = desc.DepthScale,69 ["LeftArm"] = desc.LeftArm,70 ["HeightScale"] = desc.HeightScale,71 ["LeftLeg"] = desc.LeftLeg,72 ["WidthScale"] = desc.WidthScale,73 ["BodyTypeScale"] = desc.BodyTypeScale,74 ["RunAnimation"] = desc.RunAnimation,75 ["Pants"] = desc.Pants,76 ["WaistAccessory"] = desc.WaistAccessory,77 ["LayeredAccessories"] = getLayeredAccessories(desc),78 ["AccessoryRefinements"] = {},79 ["ShouldersAccessory"] = desc.ShouldersAccessory,80 ["NeckAccessory"] = desc.NeckAccessory,81 ["HatAccessory"] = desc.HatAccessory,82 ["FrontAccessory"] = desc.FrontAccessory,83 ["BackAccessory"] = desc.BackAccessory,84 ["SwimAnimation"] = desc.SwimAnimation,85 ["IdleAnimation"] = desc.IdleAnimation,86 ["Torso"] = desc.Torso,87 ["HeadScale"] = desc.HeadScale,88 ["JumpAnimation"] = desc.JumpAnimation,89 ["GraphicTShirt"] = desc.GraphicTShirt,90 ["RightLeg"] = desc.RightLeg91 },92 ["Action"] = "CreateAndWearHumanoidDescription",93 ["RigType"] = h.RigType94 }}95 rs.CatalogGuiRemote:InvokeServer(unpack(wear))9697 rs.Events.SavedOutfitsRemote:InvokeServer({98 OutfitName = "Saved-Fit",99 Configs = {},100 Action = "CreateNewOutfit"101 })102end103104local function Proximity(player, character)105 if player == plrs.LocalPlayer then return end106107 local hrp = character:WaitForChild("HumanoidRootPart", 10)108 if not hrp then return end109110 pcall(function() hrp:FindFirstChild("CopyPrompt"):Destroy() end)111 local prox = Instance.new("ProximityPrompt",hrp)112113 prox.Name = "CopyPrompt"114 prox.MaxActivationDistance = 15115 prox.ObjectText = "- " .. player.Name116 prox.ActionText = "• Copy"117 prox.RequiresLineOfSight = false118 prox.Triggered:Connect(function()119 copy(player)120 end)121end122123local function setup(player)124 if player == plrs.LocalPlayer then return end125126 if player.Character then127 task.spawn(Proximity, player, player.Character)128 end129130 player.CharacterAdded:Connect(function(char)131 Proximity(player, char)132 end)133end134135for _, p in plrs:GetPlayers() do136 setup(p)137end138139plrs.PlayerAdded:Connect(setup)
Comments
Loading comments…