Try this:
function delag(obj)
if (obj.className == "Part") or (obj.className == "Seat") or (obj.className == "SpawnLocation") then
if (obj.Anchored == true) then
--Change all the sides to smooth
end
elseif (obj.className == "Model") then
local blah = obj:GetChildren()
for i = 1, #blah do
delag(blah[i])
end
end
end
while true do
local w = game.Workspace:GetChildren()
for a = 1, #w do
delag(w[a])
end
end |