please help this is my script
using UnityEngine;
using System.Collections;
public class Move1 : MonoBehaviour {
public float MoveSpeed;
private Vector3 input;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
input = new Vector3(Input.GetAxisRaw("Horizontal"), 0,Input.GetAxisRaw("Vertical"));
if (GetComponent<Rigidbody>().velocity.magnitude < MoveSpeed){
GetComponent<Rigidbody>().AddForce(input * MoveSpeed);
}
}}