I have an x button that closes a store gui in my game. It used to work, but for some reason, mousebutton1click doesn’t work for me anymore, I have tried creating new buttons, but those don’t work either. This code doesn’t output anything. I have no idea what could be causing this. Any help is appreciated. Thanks!
Yeah, I think it may be some kind of studio bug. I have used this code before and it works. I may try to repost this in a different category for bug reports.
the script is a local script so it’s only printing on the client output so you wont see it on the server side. Try viewing the output on the client, The code works
Try changing the Exit’s button ZIndex value to a high number (on properties) to make sure that nothing is blocking you from clicking the button. If that works, try searching which GUI was blocking the button.
This is the whole gui. Everything other than the x script and the Exit button are other aspects that I don’t think are affecting it. It also can’t be an issue with the zindex because I have tried moving the button to outside the frame. Thanks for the help so far!
Hey, if anyone is viewing this and is having the same problem, I found a decent enough solution until Roblox fixes image buttons. If you put a transparent text button on top of the image button and detect clicks for that instead, it should work.