Can magnitude not detect through walls?

Hello, I am in need of help and answers for a question.

Is it possible for to use magnitude while it cannot detect through walls?

Here is my script!

b=100 while task.wait(1)do
	for a,a in pairs(workspace:GetChildren())do
		if game.Players:FindFirstChild(a.Name)then
			local magnitude = (a.PrimaryPart.Position-script.Parent.Position).magnitude<=b
			if magnitude then  
				print('Near')

			end 
		end 
	end 
end

magnitude doesn’t decide what it does and doesn’t detect, it just gives you the length between two points

6 Likes