pushing object

It works but for some reason, it did not. And I want to know the numbers in vector3 that an object can be pushed anywhere in the direction. Here is PNG.

@GraceBelt123

Hello!

To push an object, add a rigid body to the object and make the mass to 1 and put the mass of the player to like 100 then the object will be pushed by the player

Hello @GraceBelt123!
If you want to use the script, I would try something like this:
GetComponent<Rigidbody>().AddForce(player.transform.forward * x);
This will add a force in the direction the “player” GameObject is looking. “x” is a float, which will allow you to adjust the force you want to add.