Group/Rank Only Surface GUI control

Hey,

I am currently working on a replica A320 family FAP (Forward Attendant Panel).
How would I go about making everything that can be pressed or changed on it group/rank only? without every function for a button having a few lines of code extra for it. Is there anyway I can do it all at once? This is going to have 100+ buttons.

Thanks for any help :slight_smile:

u can check if they’re in the group or the right rank and then disable the entire thing if they’re not id imagine