Why am I getting this error while using UnionAsync?

Hi, so for some reason I am getting this particular error which reads: “Unable to cast value to Objects” when the code runs a UnionAsync() operation between a wall part and a negative part that are both anchored. Here is the code for references. Hopefully there is a simple and easy fix to this, and thanks for the responses in advance.


local negativePart = workspace.NegativePart

for i = 10, 1, -1 do

print("Countdown to union: " .. i)

wait(1)

end

print("Wait finished! Doing now.")

wait(1)

wall:UnionAsync(negativePart)

https://developer.roblox.com/en-us/api-reference/function/BasePart/UnionAsync
You can see it is table {negativePart} not BasePart'

It mite b bcuz u passed a part instead of table as argument for UnionAsync. Try putting the negativePart in a table named parts and put the table as arg.