Get Distance From One Player to an NPC?

Yes, but this only works if these 2 objects are already placed in the scene and can only be used for exactly these 2.

So you can’t reuse that for different once dynamically during the play.