Hello, I have made the script that copies the character’s items, clothes, etc. Still, I want It to copy all the details like the size of the character, check If the character is a R15 or R6, BodyDepthScale, BodyHeightScale, BodyProportionScale, BodyTypeScale, BodyWidthScale, HeadScale. How can I add them to this script:
local proximityPrompt = game.Workspace.Stands.First.Proximity.Attachment:WaitForChild("ProximityPrompt")
local edit = proximityPrompt.Parent.EditPrompt
local owner = proximityPrompt.Parent.Parent.Owner
local function onPromptTriggered(player)
wait(1.4)
local id = player.UserId
local appearanceItems = game.Players:GetCharacterAppearanceAsync(id):GetChildren()
for _, item in pairs(appearanceItems) do
if item:IsA('Accessory') then
item.Parent = script.Parent
elseif item:IsA('Decal') then
script.Parent.Head.face.Texture = item.Texture
elseif item:IsA('Shirt') or item:IsA('Pants') or item:IsA('ShirtGraphic') or item:IsA('BodyColors') then
item:Clone().Parent = script.Parent
end
end
end
local function onPromptTriggered2(player)
wait(3)
if owner.Value == "NoOne" then
-- Remove all accessories, clothes, and other changes
for _, item in pairs(script.Parent:GetChildren()) do
if item:IsA('Accessory') or item:IsA('Shirt') or item:IsA('Pants') or item:IsA('ShirtGraphic') or item:IsA('BodyColors') or (item:IsA('Decal') and item.Name == "face") then
item:Destroy()
end
end
print("No one is owner, accessories and clothes removed")
else
print("still owns!")
end
end
proximityPrompt.Triggered:Connect(onPromptTriggered)
edit.Triggered:Connect(onPromptTriggered2)
Any help is appreciated!