for _, v in pairs(game.Workspace.Model:GetDescendants()) do
if not v:IsA("UnionOperation") then
v:Destroy()
end
end
Its just for sperating non-Unions from Unions, but it doesn’t work. It just deletes the whole model
for _, v in pairs(game.Workspace.Model:GetDescendants()) do
if not v:IsA("UnionOperation") then
v:Destroy()
end
end
Its just for sperating non-Unions from Unions, but it doesn’t work. It just deletes the whole model
for _, v in pairs(game.Workspace.Model:GetDescendants()) do
if v:IsA("UnionOperation") then
continue -- skip this iteration
end
v:Destroy()
end
@ThePeterTuber that’s what I did but ok
It doesn’t work. It deletes the whole model.
What does the model’s explorer look like
Ah, sorry. Didn’t see your post
In the Model are more models.
some random words caz the post needs to be longer
Can you give us an image to base off of?
So something like Model → Model? That’s probably the issue then, it’s deleting the main models those Unions are contained in, which destroys everything, maybe try
for _, v in pairs(game.Workspace.Model:GetDescendants()) do
if not v:IsA("UnionOperation") and not v:IsA("Model") then
v:Destroy()
end
end
I found a way, so it works. Thanks for help
Yeah it’s fine, as long as you find a solution