Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make a Union consisting of 2 or more Parts with a script?

Is it possible to make a Union consisting of 2 Parts with a script? If yes please answer! ;D

2 answers

(thanks to theking48989987 on the Dev Forum)

Example:

local part = game.Workspace.Part1
local otherParts = {game.Workspace.Part2, game.Workspace.Part3, game.Workspace.Part4}

local newUnion = part:UnionAsync(otherParts)

2 comments

0

Thank you very much i didnt know UnionAsync was a thing.

0

make sure to accept the answer if it helped! :)

You can use UnionAsync and SubtractAsync to create a unions at runtime between the initial part and a table of other parts.

1 comment

0

Thank you very much i was searching for something like this!

This discussion is preserved as it was. New answers, comments, and votes are closed.