How to make ball softly stop! Basic scripting

So i have a ball that rolls but it suddenly stops when i let go of the keys, i want it stop but stop softly with a bit of extra roll not just a sudden stop. How can i achieve this?

this is my ballcontroll script

public class Ballcontroller2 : MonoBehaviour {

public float movespeed;
private Rigidbody myrigidbody;

private Vector3 moveInput;
private Vector3 moveVelocity;

// Use this for initialization
void Start () {
	myrigidbody = GetComponent<Rigidbody> ();
	
}

void Update () {
	moveInput = new Vector3 (Input.GetAxis("Horizontal"), 0f, Input.GetAxis("Vertical"));
	moveVelocity = moveInput.normalized * movespeed;
}

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

}


Thanks in advance! --byrd :slight_smile:

Try to tweak the physic material of your ball and your floor (especially the friction parameter), it could help you.