HELP

Assets\movment.cs(15,35): error CS1503: Argument 4: cannot convert from ‘float’ to 'UnityEngine.ForceMode

Can someone help me

Can you show your script also? (or at least that line 15)

here is example for AddForce, 2nd parameter is forcemode, if its for that:

Welcome to the forum!
That said, your title is increadibly useless and next time please post the script (using code tags) that causes the error.

You are using a function wrong. Likely AddForce. Which expects you to pass in a ForceMode, which is an enum provided by Unity. Instead you give it a float value. So the function throws the error to tell you that you gave it something unexpected, and that it cant automatically convert it for you.
If a function expected a float from you, but you gave it an int, it would not complain, since 3 == 3.0f. That can be converted implicitely. However, if it expects a ForceMode from you and you give it some float, e.g. 3.571f, then it has no idea which ForceMode this is supposed to be.
Internally Enums are actually just integers, so assigning a number is not directly wrong. However, i doubt that you have some dynamic calculation of a ForceMode type going on… so for any more info than this, we need to see your code.

public class movment : MonoBehaviour
{

public Rigidbody rb;

public float forward = 2000f ;

void FixedUpdate()
{
rb.AddForce(0, 0, 2000, forward * Time.deltaTime);

if(Input.GetKey(“d”) )
{
rb.AddForce(500, 0, 0);

This is the script

The answer is above! Quite simply, look at the docs linked above and provide the correct thing to the function. The 4th argument isn’t what you provided.

public void AddForce(float x, float y, float z, ForceMode mode = ForceMode.Force);