Region3 not working as expected?

I’m away from my PC at the moment but will do my best to explain.

So I’m working using Region3 to register all parts within a certain magnitude of a BasePart; the purpose of this is to then clone said parts and put them into a Viewport Frame.

My issue is however that not all parts are being registered / accounted for from within said region.

Example of how it works:
local BasePosition = Part.Position
local Max = BasePosition + vector3.new(100,100,100)
local Min = BasePosition - vector3.new(100,100,100)

I’m using RenderStepped service for this as it goes in-par with my ViewportFrame positioning.

Are you detecting the part through workspace:FindPartsInRegion3WithWhiteList?

1 Like

I’m using workspace:FindPartsInRegion3, should I be using the latter?

Yes, as it gets all the descendants of the part in the region

Would I not have to create the Whitelist first before creating the Region3?

In this case the list should be the table of descendants.

Example: local partsInRegion = workspace:FindPartsInRegion3WithWhiteList(region, player.Character:GetDescendants())

Let me know if it works

1 Like