print([[
local model = Instance.new("Model",game.Workspace)
]])
local toconvert = game.Workspace["Observation Tower"]
local childrentable={}
local childrennumber=0
sentchildrentable=false
function mainloop(children)
for i=1,#children,1 do
childrennumber=childrennumber+1
wait()
if i==#children then
for i=1,#childrentable,1 do
if sentchildrentable==false then
wait(0.1)
mainloop(childrentable[i]:GetChildren())
sentchildrentable=true
else
if children[i]:IsA("Model")==false and children[i]:IsA("Folder")==false then
print("local child"..childrennumber.."=Instance.new("..children[i].ClassName..",model)")
else
table.insert(childrentable,children[i])
end
end
end
end
end
end
local toconvertchildren = game.Workspace["Observation Tower"]:GetChildren()
mainloop(toconvertchildren,0)
It gives NO Output. doesn't error, doesn't print.

4 comments
Format and I will consider answering
Or you could just answer it, instead of demanding that i format it to fit your needs. I can read that script easily.
If you expect help, you have to make your code readable. It is hardly readable.
Could you please elaborate on what you are trying to achieve at least?