I've tried:

Table = {}
for i,v in pairs(workspace:GetChildren()) do
	if v ~= nil then
		table.insert(Table, v)
		Table[v.Name] = v:Clone()
		v:Destroy()
	end
end

But nothing happens. I just see everything in Studio Explorer.

2 comments

0

what is your goal here?

0

As Water said, maybe add description on what you're trying to achieve. Also you can use game.ServerStorage to store in-game objects.