LUA help

A friend of mine has a fixed version of leeroys base, but its a toggle ADS.
Do I have to add something so that I have to hold rightmouse to aim?
Many thanks

Could do something such as detecting the mouse press. Like as long as it’s held down, then it runs the function else return end

Problem is that I dont have LUA knowledge so I dont know what to do

There’s a function of pressing keys, which can be found here and then there’s another page which displays all the keys, such as this

I’m not entirely sure what you’re trying to do here, but according to Nookyava, ‘function else return end’ would work, so if you follow the example on the wiki page you may be able to get it.