Sometimes it’s hard to tell if it’s your exact issue just from the titles of the posts, especially for this kind of problem where the poster can’t put their issue into words because they don’t know what’s wrong. It seems like it should be working, but it doesn’t.
Here are some posts that cover what I believe to be your problem:
I have created two bricks with the size of (0.05, 0.05, 0.05) at the top and bottom corners of a brick and I wanted to create a Region3 to check if the region is empty but for some reason it keeps saying that the region isEmpty when it should be printing false.
After trying to figure out what had been going wrong I checked the size of the Region and it was printing the Y and Z axis as negatives. I am assuming that this is the issue causing my problem but I cannot think of what’s causing this is…
Do note that workspace:IsRegion3Empty has no blacklist parameter supplied, so it will detect the parts used to construct the Region.
Also note that the Region3 constructor has this annoying requirement that the positions passed to it must be min and max. See the below example.
local Part1 = workspace.Part1
local Part2 = workspace.Part2
local region1Upper = Vector3.new(
math.max(Part1.Position.X, Part2.Position.X),
math.max(Part1.Position.Y, Part2.Position.Y),
math.max(Part1.Position.Z, Par…
When printing out the size of the Region3 we get (-31.3000031, 17.9000244, 39.6019897) we shouldn’t see any negative values here. So the problem is your BottomLeftCorner and TopRightCorner positions.
Region3’s operate off of two Vector3’s. The first is the minimum position and the second is the maximum position. Since your values are:
local BottomLeftCornor = Vector3.new(-168.367, 495.781, -360.271)
local TopRightCorner = Vector3.new(-199.667, 513.681, -320.669)
and BottomLeftCorner is your m…