Performs the negate part operation to the object of parameter2, and unites it with the object of parameter1. The parts involved in unite operation keep unchanged, and a new union object is created at (0,0,0) by default.


Variable name Type Default Description
partlist table Table of objects involved in negate operation

Return Value

Type Description
RWObject United object


Create three part objects, and perform negate operation for all the part objects in the array. Cut off the overlaps between the first part object and all part objects in the array from the first part object.

local p1 = RWObject.Create("Part") -- create part1
local p2 = RWObject.Create("Part") -- create part2
local p3 = RWObject.Create("Part") -- create part3
p1.Anchored = true -- part1 movability assignment
p1.Position = Vector3.New(-5.2266,0.1251,3.3287) -- assign a vector to the part1 position
p1.Name = "p1" -- set the part1 name as p1
p2.Anchored = true -- part2 movability assignment
p2.Position = Vector3.New(-5.2031,0.2404,3.8696) -- assign a vector to the part2 position
p2.Name = "p2" -- set the part2 name as p2
p3.Anchored = true -- part3 movability assignment
p3.Position = Vector3.New(-5.2031,0.3200,4) -- assign a vector to the part3 position
p3.Name = "p3" -- set the part3 name as p3
local objlist = {p2,p3} -- put the parts into a table
wait(1) -- wait 1
local newp1 = p1:ReverseModle(objlist) -- unite part1 and the parts in the table
print(newp1.Name) -- output the name of the new part
newp1.Position = Vector3(10,0.125,10) -- assign a value to the new part position
newp1.Color = Vector3(0,255,0) -- assign a value to the new part color