The red-sphere is a size of Vector3.new(35,35,35), to help visualise the hitbox
My question is, how is .Magnitude detecting the NPC outside of the sphere, when the the ‘range/radius’ for detecting is set to ‘35’?
local Range = 35
local detected = (v:FindFirstChild("HumanoidRootPart").Position - tbl.Origin.Position).Magnitude < Range
Unless I am misunderstanding how to visualise magnitude hitbox (I believe magnitude is a radius, hence a spherical shape would do in visualising the hitbox)?
Set the sphere to Vector3.new(70,70,70). Part size is the total size, in case of the sphere it is equivalent to diagonal.
Diagonal is twice the radius.