TextButton randomly stops working when in game

I usually use a textbutton on top of an imagebutton for click detection because roblox still hasn’t fixed the image button bug. I made this toggle button, and it appears and works while in studio, but it just disappears in game. I duplicated the gui into a blank baseplate and it worked fine. It’s the same button, all of the properties are the same in game, and the zindex is 99999.

I don’t know what could possible be causing this considering the properties don’t change or anything. I don’t think a script could be affecting it because how could a script disable a button without changing anything about it. If anyone could help I would appreciate it!

The videos above aren’t working, could you send your script (or a snippet of the part thats not working?)