Why does plugin:Union return an error?

image

image


image

image


This code works though, and it’s a few lines above the faulty code:

image

What gives? Thanks!

plugin:Negate() returns an array of NegateOperations, so negatedPart1 and negatedPart2 are actually tables.
If you want the part from Negate, I would do something along the lines of this

local negatedPart1 = plugin:Negate({negatePart1})[1]
-- same thing for the second part

Notice the [1], this would get the first part in the array that Negate returns.

You’re absolutely correct!

image

Edit: Can you make an update documentation request? I don’t see that in the documentation…

Edit 2: And union returns an instance instead of a table… so inconsistent!

Instances means “array of Instances.”

I thought it’d return like multiple variables that you’d have to do this for:

local negated1, negated2 = plugin:Negate({part1, part2})

Anyhow, they should definitely make it more clear! Thanks! :D