So, I want to check if a player is in a zone without putting a huge transparent block in the zone so I can build properly, I also want to avoid using modules.
So how would I achieve that?
So, I want to check if a player is in a zone without putting a huge transparent block in the zone so I can build properly, I also want to avoid using modules.
So how would I achieve that?
You could use workspace:GetPartBoundsInBox
local Params = OverlapParams.new()
local Parts = workspace:GetPartBoundsInBox(
AREA_CFRAME_POSITION,
AREA_VECTOR3_SIZE,
Params
)
local PlayersInBox = {}
for _, Part in pairs(Parts) do
local Player = Players:GetPlayerFromCharacter(Part.Parent)
if Player then
table.insert(PlayersInBox)
end
end
Does it require part?
No, just the location of the area in CFrame and it’s size in Vector3
cool! thanks