function a()
local all = game.Workspace.Model:GetChildren()
for i,v in pairs(all) do
if v.ClassName == 'Part' then
print('ClassName is part')
if v.Material == 'Concrete' then
v.Parent = game.Workspace.concrete
print('worked')
end
end
end
end
wait(3)
a()
this script is in workspace. i am just made this script to help me with alot of aprts. so basically i want this script to do is that if the classname of a thing in model is 'Part' and if the material of the part is 'Concrete' then that parts parent will me concrete which is a different model in workspace for all the concrete parts. this script will not change the parent of the concrete parts in the model

2 comments
ty it worked
no problem, glad I could help!