Reload and Fire rate.

i need help with scripting reload an the fire rate.

any help would be Nice :slight_smile:

My current “fire script” is

var projectile : Rigidbody;
var speed = 20;


function Update () {

    if ( Input.GetButton ("Fire1")) {

         clone = Instantiate(projectile, transform.position, transform.rotation);
         clone.velocity = transform.TransformDirection( Vector3 (0, 0, speed));

         Destroy (clone.gameObject, 3);
             
 }}

After a quick google search i found this forum thread with a similar script that i use which has all the features you want:

http://forum.unity3d.com/threads/7073-Taking-MachineGun-js-a-bit-further

Next time please search before you post a new question.