Check if player is within an objects range

hi id like to know how i can check whether a player is within a specific range towards an object.

Vector3.Distance()

I would look into a sphere collider too, so that you don’t have to manually check such a thing every frame and can just rely on the collision/trigger.