Problem with magnitude

Hello everyone, there is a very odd problem, whenever I check the magnitude between 2 parts, I get magnitude (most likely) from the Vector(0,0,0) to the player’s/pet’s part.

I am trying to: if the magnitude between player and pet is bigger than 9, the pet should move closer to the player, but it gives me odd results.

Video to help you understand:
https://gyazo.com/9ccc3669f9d4d5abe3cd9683ad0545a9

Code:

	local BP = body.Position
	local charP = char.HumanoidRootPart.Position
	local Distance = (charP-BP).Magnitude
	print(Distance)
	if Distance >= 9 then
		canMove = true
	end

thank you for any help! <3

fixed. help is no longer needed! :slight_smile: