Create a region3 around the player?

I’m presuming this is the issue with my code, I’m not too sure how to visualize this region either but here’s what I came up with.

local region = Region3.new(
Character.HumanoidRootPart.Position + Vector3.new(10, 10, 10), Character.HumanoidRootPart.Position + Vector3.new(-10, -10, -10)
)

I need to create essentially a box around the player to get all players around the user, yes I know I can loop and compare magnitude but I’m more interested in finding out how I’d do this anyways.

3 Likes

Nope, it was right, I just had to reverse the Positions, putting the -Vector3 first.

3 Likes

How does it work, I mean like how did you come up with the situation?

Nvm I looked at it and now I know what it does.