Im pretty new to scripting and always wanted to make a tool like this. Thanks!
Idk if this will work but i will try tho:
local Activated = false script.Parent.Activated:Connect(function() if not Activated then Activated = true local PlayerChar = script.Parent.Parent local PlayerOwnsFolder = Instance.new("Folder") PlayerOwnsFolder.Parent = game.ReplicatedStorage PlayerOwnsFolder.Name = PlayerChar.Name.." Items" for i,v in pairs(PlayerChar:GetChildren()) do PlayerChar.Head.face.Transparency = 1 if v:IsA("Part") or v:IsA("MeshPart")then v.Transparency = 1 elseif v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") then local SaveClone = v:Clone() SaveClone.Parent = game.ReplicatedStorage[PlayerChar.Name.." Items"] v:Destroy() end end else local PlayerChar = script.Parent.Parent for i,v in pairs(PlayerChar:GetChildren()) do if v:IsA("Part") or v:IsA("MeshPart")then v.Transparency = 0 PlayerChar.HumanoidRootPart.Transparency = 1 PlayerChar.Head.face.Transparency = 0 end end for i,v in pairs(game.ReplicatedStorage[PlayerChar.Name.." Items"]:GetChildren()) do v.Parent = PlayerChar end game.ReplicatedStorage[PlayerChar.Name.." Items"]:Destroy() Activated = false end end)
If you want me to explain something tell me! Hope it helps
Closed as Not Constructive by User#32819, WideSteal321, LennyPlayzYT, and JakyeRU
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?