What is wrong with my code?

i did code from this and my object is still not moving forward

using UnityEngine;

public class PlayerMovement : MonoBehaviour
{

// This is a reference to the Rigidbody component called “rb”
public Rigidbody rb;

public float forwardForce = 2000f;

//We marked this as "Fixed"Update because we
// are using it to mess with physics.
void FixedUpdate()
{
rb.AddForce(0, 0, 2000 * Time.deltaTime); // Add a force of 2000 on the z-axis
}

}

Did add a RigidBody component to the gameobject and set your rb variable in the inspector?

If it’s not what @Kaart has suggested, could you include some more information? Any errors in the console? Any other strange / unexpected behaviour? Or just nothing at all?

No errors at all

Did you set a really high Mass or Drag for the RigidBody?

Did you add a debug to the FixedUpdate and see it print out in the console to make sure it’s running?