Hello Roblox Developers!
I am struggling with trying to delete a folder with parts in them without deleting the parts themselves. How do I do this? I know, I’m doing a really bad job at explaining.
Hello Roblox Developers!
I am struggling with trying to delete a folder with parts in them without deleting the parts themselves. How do I do this? I know, I’m doing a really bad job at explaining.
local folder = -- the folder
for index, child in ipairs(folder:GetChildren()) do
child.Parent = folder.Parent
end
folder:Destroy()
I think this is what you want?
just move the parts out of the folder before you delete it?..
I’d recommend moving the parts into worldspace and then deleting the folder. Usually move the parts right at the top or the bottom so they’re easier to find.
I’m so dumb. I never realized that I could do that.
Thanks!
Please mark Braxbro’s post as the solution of this post
I know the question has already been answered, but when you delete anything all the descendants or stuff inside the thing will also be deleted.
No but that will happen in game. No affect after. If u really don’t want to move the parts maybe make a plugin?