Help with making a invite player list system

I do use Players.PlayerAdded in my code, but I thought I could use ChildAdded to find the button and some how use MouseButton1Click. Cleary I could not get that to work. I’m working on the button because after I copy the frame my code doesn’t work when I try to find and check if the Invite button was clicked.

The message

I thought I could use the script after copying. I can’t