Change SWEP damage and accuracy

hello, im pretty new to lua, well, what i´m trying to do is a swep that, when the variable “test” is 1, the accuracy and damage is reduced.

any help?

anyone?

You should be able to work it out from there. If not, then I think you should go back and learn the basics more thoroughly.