Tasers preserve the function of weapons as an instrument for self-defense.

Tasers preserve the function of weapons as instruments for self-defense.

Which sentence is correct or how should it be revised?. Is function referring to instrument, or is weapons referring to instruments.

Instruments refers to weapons -- so the second sentence is correct.