Switching between selected weapon for recoil script.

So I have a recoil script which is attached to a Camera holder object, I put all the recoil parameters in my Weapon script (I have 2 weapons). I wanted to know what’s the best method to switch between the active weapon for the recoil script, because right now I can only call one of the weapons ( in the recoil script I referenced my weapon script but I need to switch between the active weapon)

199198-screenshot-2022-08-25-215102.png

can you provide more info, why would you not be able to change the reference to whatever the “active” weapon is after you switch weapons?