Detect if a player is inside a certain area

You can use Region3 instead.

Or rotated region3 with a lot more feature

And you should learn about Region3 and stuffs to do that