Pushing and pulling

Hello, I’m wondering how do I make a pushing and pulling an object. I’ve been searching for a long time but nothing