Region3 not detecting player

I have this code (see below) that looks for all parts within a Region3. Now, it finds every part inside it EXCEPT for the player. The region3 itself is not the issue, as I can have the player stand right next to a part smack dab in the middle of the Region3, and it will detect the part, but not the player. Can anyone help me here?

    local parts = workspace:FindPartsInRegion3(region)
	local hums = {}
	
	for i,v in ipairs(parts) do--find any players inside the chamber
		if v.Parent:FindFirstChild("Humanoid") and notInTable(v.Parent,hums) then 
			hums[#hums+1] = v.Parent
		elseif v.Parent.Parent:FindFirstChild("Humanoid") and notInTable(v.Parent.Parent,hums)  then
			hums[#hums+1] = v.Parent.Parent
		end
	end

BELOW: The player, and a part detected in the Region3.

4 Likes

I have realized it’s because FindPartsInRegion3 has an argument that specifies how many parts it can detect. I didn’t have it specified, so it defaulted at 20.

3 Likes