Region3 weirdly not working

local A = workspace.A
local B = workspace.B

local ProximityRegion = Region3.new(A.Position, B.Position)

local part = Instance.new("Part")
part.Parent = workspace
part.CFrame = ProximityRegion.CFrame
part.Size = Vector3.new(math.abs(ProximityRegion.Size.X),math.abs(ProximityRegion.Size.Y),math.abs(ProximityRegion.Size.Z))
part.Anchored = true
part.Name = "regionpart"

while wait() do
	local ProximityRegionResults = workspace:FindPartsInRegion3(ProximityRegion)
	print(ProximityRegionResults)
end

Weirdly, it just doesn’t print out a part when i put it through. It only prints out a blank table “{}”. The A part is positioned on the floor, While the B part is positioned in the air kinda adjacent to the A part (i followed a tutorial for that method), so im not sure there’s a problem with it’s size inherently. Is there anything i’m doing wrong?

Just a heads up that region3 is deprecated, it’s better to use “WorldRoot:GetPartsInPart” which has basically replaced it. Read more on it here: WorldRoot:GetPartsInPart

1 Like

Ah, okay. I’m just wondering, does region3 work something and other times it just doesnt? I didnt know thats how deprecated functions really worked. I used region3 a few weeks ago and it worked fine, so i’m just confused why this time it isn’t. Thanks for the reply.