Im trying to get rid of lag and seeing if deleting all unions would help.
Heres the script
for key, object in pairs(workspace:GetDescendants()) do
wait()
if object:IsA("UnionOperation") then
object:Destroy()
end
end
Im running it in the command bar but nothing is happening 0 errors but nothing is happening.
2 Likes
for _, v in pairs(workspace:GetDescendants()) do
if v:IsA("UnionOperation") then
print(v.Name)
v:Destroy()
end
end
I tested and this works, just copy and paste it directly into the command bar. If nothing is happening then you don’t have any “UnionOperation” instances to delete in the workspace.
4 Likes
Thats weird your script worked but mine didnt thanks anyways!