There is no error in the output.
local pointA = Vector3.new(-6.402, 0.71, 72.872) -- some position local pointB = Vector3.new(game.Players.LocalPlayer.Character.Torso.Position) -- some other position if (pointB - pointA).magnitude < 0.1 then print("Close Enough") end
Need it to print when its close enough
Only checks magnitude once, add while loop.
while wait() do local pointA = Vector3.new(-6.402, 0.71, 72.872) -- some position local pointB = game.Players.LocalPlayer.Character.Torso.Position) -- Vector3.new shouldn't be used if (pointB - pointA).magnitude < 0.1 then print("Close Enough") end end