Implemting a script to a menu

Sorry in advance if this is not allowed here.

Hey guys so I am trying to implement an ID script into a Menu and ill be honest im a little new to all this.
I did try to do it myself which resulted in the menu to not open, I will keep on trying tho until someone or I can get it working.
If you have any tips or want to show me how it is done or do it for me that would be greatly appreciated.

Here are the 2 things I want to put together

Thanks!