Hi, this script is supposed to clone a part that has its children in it when it is touched and removed. It will clone the part with its children in it the first time correctly after being removed but not after that. The second time the part is cloned, the part does not have its children. Thanks for the help.
wait(1)
function getPosition()
position = script.Parent.Special.Position
return position
end
function getClone()
clone = script.Parent.Special:Clone()
return clone
end
getClone()
getPosition()
while true do
if not script.Parent:FindFirstChild("Special") then
wait(1)
print(clone,position)
clone.Model:MakeJoints()
clone.Parent = script.Parent
clone.Position = position
end
wait(5)
end

2 comments
:Clone() can't clone a BasePart's children. Use a Model or get all the part's children using a loop.
is it archivable? is it parented before cloning?