I feel like this is a bug, but incase I missed something I’ve posted it here first. I cant get an ImageButton in a billboard gui to respond to input. Tapping or clicking on the button is causing no events to be fired.
I put this in a Local Script in StarterPlayerScripts:
Looks like I might have celebrated too soon, I’ve moved it into the PlayerGui, but I’m still getting nothing out of InputBegan from an ImageButton in it.
Infact I cant seem to get it to respond to any events at all, whatsoever. MouseButton1Down is doing nothing, and I’ve checked and the event has definitely been connected but is never fired.
To see the difference between what you gave him (which works) and what he has (for some reason doesn’t). @madattak I can verify that @RuizuKun_Dev’s fix works. Is it breaking when you try to modify it for your purposes? If so, could we get more information?
Unfortunately I’ve found that a lot of places filter out the user input. For example the ContextActionService never fires w, a, s, or d events. Also when using an TextBox in the GUI and you begin typing in it, mouse events stop firing for it. This is why most of the time I try to hook directly into UserInputService. I suppose that to make an interface compatible with mobile and Xbox users, you wouldn’t want a UI dependent upon keystrokes, so Roblox doesn’t have those events fire to prevent newer developers from using it.