How do I modify my script to give my gun recoil when I shoot?

you could make me a new script or modify the shoot script here if you want. Here is my script:

    var projectile : Rigidbody;
    var speed = 20;
    var cloneSpeed = 10;
    function Update () {
    if ( Input.GetButtonDown ("Fire1")) {
    clone = Instantiate(projectile, transform.position, transform.rotation);
    clone.velocity = transform.TransformDirection( Vector3 (1, 1, speed));
    Destroy (clone.gameObject, 5);

Hi, just search on here for “Recoil”

there are very many full and complete scripts that do it all for you. Eg

pls “Tick” any helpful answer to quickly close out this question, thanks. You don’t sound in the slightest rude :slight_smile: