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.
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.