Button.Activated not working

I have a print() when the player presses a button. It should print pressed but it doesn’t.

That works. Because this code prints

button

I found the problem. There was another UI that was not activated and that was blocking the player from pressing the UI. I hadn’t seen that UI because it was invisible.

Thanks everyone for trying to help me.

2 Likes

What is this lol? MouseButton1Click and MouseButton1Down works on all platforms.

3 Likes

One look would’ve answered your question, and it’s not false.

There is also a post somewhere of one of the engineers saying they have events such as MouseButton1Click hooked up to work for all platforms but it shouldn’t be used for that, I can’t find the post right now though. You should do some research on the topic though.

3 Likes

There was another UI that was not activated and that was blocking the player from pressing the UI.

Could you elaborate on this, please? What did you do to fix this?
I think the same problem occurs to me.