My region3 only detect baseplate

Hi, i was learning about region3 for my game skill but there a problem that region 3 that i write detect Baseplate only can anyone help me please?

Here my script :

function swordrush()
	print("test")
	local char = script.Parent.Parent
	local hitbox = Region3.new(Vector3.new(5,0,5), Vector3.new(10,5,15))
	local regionpart = Instance.new("Part", workspace)
	local oldpos = regionpart
	regionpart.Anchored = true
	regionpart.CanCollide = false
	regionpart.Size = hitbox.Size
	regionpart.Massless = true
	regionpart.CFrame = char:FindFirstChild("HumanoidRootPart").CFrame + (char.HumanoidRootPart.CFrame.LookVector * 6)
	while true do
		wait()
		for i,v in pairs(workspace:FindPartsInRegion3(hitbox, nil, math.huge)) do
				print(v.Name)
			end
		end
	end

script.Parent.Activated:Connect(swordrush)

I place this on tools

You should try using the new spatial query api as it’s generally easier to use and basically just supersedes region3. Also why are you using a while loop to just print the array of items in your hitbox?

I just want to check that region 3 is work correctly and it not even touch the baseplate and it still print baseplate

You are passing to the :FindPartsInRegion3 a part while it requires a region. Read WorldRoot:FindPartsInRegion3