Problem with movement script C#

My script doesnt work at all! i cannot find what is wrong. can anyone please help?

using UnityEngine;
using System.Collections;

public class PlayerMovement : MonoBehaviour {

    public float moveSpeed;
    private Rigidbody myRigidbody;

    private Vector3 moveInput;
    private Vector3 moveVelocity;

    // Use this for initialization
    void Start () {
        myRigidbody = GetComponent<Rigidbody>();
    }
   
    // Update is called once per frame
    void Update () {
        moveInput = new Vector3(Input.GetAxisRaw("Horizontal"), 0f, Input.GetAxisRaw("Vertical"));
        moveVelocity = moveInput + moveSpeed;
    }

    void FixedUpdate () {
        myRigidbody.velocity = moveVelocity;
    }

}

Thanks for your help :slight_smile:

Assets/test.cs(22,24): error CS0019: Operator `+' cannot be applied to operands of type `UnityEngine.Vector3' and `float'

check this line…

moveVelocity = moveInput + moveSpeed;

// should be

moveVelocity = moveInput * moveSpeed;

Thank

Thanks but now i cannot move and i just go down slowly through the floor! can you please send me something to help me with that?
Thanks alot