SWEP Scope Help

What I’m trying to do is make an assault rifle with a scope. I’m trying to show an overlay on-screen, and I want it to go away if you right-click or reload. I’m using Mad Cows weapon base. Basically, I tried multiple different ways, and all of them resulted in errors. I have searched here, too. Please help.

figured it out but dunno how to lock