Adding force to First person and move it backward

i have an object in which when the first person collided with that object, the first person will be pushed backward. I have found a code that add force but only to a rigid body. How can i do it in first person? Thanks!

Just add a rigidbody to your first person controller (if there's not already one attached)

The use the Rigidbody.addForce function.