Roblox is dublicating parts when using BasePart:UnionAsync()
. It is similiar to Object:Clone()
so first of all you need to assign a Parent
for newUnion
. You can remove parts or hide them if you want to use them later.
Example
01 | local part = workspace.Part 1 |
02 | local otherParts = { workspace.Part 2 , workspace.Part 3 , workspace.Part 4 } |
05 | local newUnion = part:UnionAsync(otherParts) |
06 | newUnion.Parent = workspace |
09 | workspace.Part 1 :Destroy() |
10 | workspace.Part 2 :Destroy() |
11 | workspace.Part 3 :Destroy() |
12 | workspace.Part 4 :Destroy() |