Textbutton not activating?

I have this frame which turns visible with the help of region3(which i got from the forums)

it works fine whenever i go in and out of the part but the problem is i cant touch the buttons?
the buttons are supposed to turn black and print out (“Touched”) but it just doesnt seem to be working.

the button functions are all local functions and connect when .Activated
when I deleted the whole region3 line and just put it on visible and tested it in game it worked fine
heres the part of the script that is turning the frame visible.

image

so i rearranged some local functions and for some reason it miraculously started working again