for i,v in pairs(copyWhat) do archivable(game[v]) end
if entered and dragged then
for j,obj in pairs(copyWhat) do
for _,v in pairs(objects) do
if obj ~= "StarterPlayer" then
if v.Selected then
local newFolder = Instance.new("Folder",copyGroup)
newFolder.Name = obj
for i,v in pairs(game[obj]:GetChildren()) do
if v ~= copyGroup then
pcall(function()
pcall(function()
v.Owner.Parent = direct
v:Clone().Parent = newFolder
end)
end)
end
end
end
end
end
entered, direct = nil, nil
dragged = false
gui.Panel.Holder.Dragging:ClearAllChildren()
end)
button.MouseButton1Down:connect(function()
dragging = true
optioned = nil
gui.Panel.Holder.Options.Visible = false
if ctrldown then
objects[obj].Selected = not objects[obj].Selected
primary = objects[obj]
elseif shiftdown then
if not primary then
for _,v in pairs(objects) do
v.Selected = false
end
primary = objects[obj]
objects[obj].Selected = true
else
else
objects[obj].Selected = true
local newFolder = Instance.new("Model",copyGroup)
newFolder.Name = "StarterPlayer"
for _,v in pairs(objects) do
for i,v in pairs(game[obj]:GetChildren()) do
if v.Button.AbsolutePosition.Y > primary.Button.AbsolutePosition.Y and v.Button.AbsolutePosition.Y < button.AbsolutePosition.Y or v.Button.AbsolutePosition.Y < primary.Button.AbsolutePosition.Y and v.Button.AbsolutePosition.Y > button.AbsolutePosition.Y then
local newObj = Instance.new("Folder",newFolder)
if checkVisible(v.Button) or v.Button.Parent == panel then
newObj.Name = v.Name
v.Selected = true
for _,c in pairs(v:GetChildren()) do
if c.Name ~= "ControlScript" and c.Name ~= "CameraScript" then
c:Clone().Parent = newObj
end
end
end
end
end
end
end
end
else
wait(0.25)
if not dragging then
for _,v in pairs(objects) do
if v ~= objects[obj] then
v.Selected = false
end
end
end
primary = objects[obj]
if workspace.CurrentCamera and cameraInstances then
objects[obj].Selected = not objects[obj].Selected
local cameraFolder = Instance.new("Model",copyGroup)
end
cameraFolder.Name = "CameraItems"
for i,v in pairs(workspace.CurrentCamera:GetChildren()) do v:Clone().Parent = cameraFolder end
end
end
highlightSelected()
if copyTerrain then
end)
local myTerrain = workspace.Terrain:CopyRegion(workspace.Terrain.MaxExtents)