Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Copy hats and clothing from a character?

Was wondering if it was possible to copy a characters hats and clothing and after they press a button or something they would be taken off then re-applied back on. If this is possible how could it be done; Thanks.

2 comments

0

make the cloothing invisible?

0

More so for a tool that on click it takes it off applies different clothing then puts back on your original

1 answer

✓ Accepted answer

Here, hope this helps:

local p = game.Players.LocalPlayer
repeat wait() until p.Character
local c = p.Character

local folder = Instance.new("Folder",script)
folder.Name = "ClothesHolder"

function removeclothes() -- Puts your clothes in a folder.
for i,v in pairs(c:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") then
v.Parent = folder
end
end
end

function grabclothes() -- Puts your clothes back.
for i,v in pairs(folder:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") then
v.Parent = c
end
end
end

wait(1)
removeclothes() -- Calls the function to remove yor clothing.
wait(1)
grabclothes() -- Calls the function to return the clothing.

2 comments

0

Thanks

0

np

This discussion is preserved as it was. New answers, comments, and votes are closed.