something like-
model = script.Parent:GetChildren()
for i,v in pairs(#model)
if v:IsA("BasePart") then
part[i] = v
return part[i]
end
end
part[i].Touched:connect(function (tchprt)
if not tchprt.Parent == model then
part[i]:remove()
end
end)
Put it in a script in the model and tell me if it works. |