How can I adjust this so it applies to more than one Frame?

Right now I can only put this LocalScript into one frame for the save feature to work. If I put it into several frames, it will no longer save visibilities. I want many Frames to have this LocalScript in them so their state of visibility saves. How can I adjust these two scripts so it allows for the LocalScript to be pasted into many Frames?