Get player pulled to position/object

I’m sure it’s simple, but I don’t get it:

How can I make that my player gets pulled to something? I tried something like rigidbody.addForce() etc.

By the way I am using c#. Thank You!

Assuming your player has a reference to that something that is pulling:

rigidbody.AddForce((something.position - transform.position).normalized * someForce);

Or assuming the something has detected the player and needs to pull it in:

player.transform.rigidbody.AddForce((player.transform.position - transform.position).normalized * someForce);

If it is a force applied over time, then put the code in FixedUpdate.