I have been trying to create a button with a SurfaceGuis and an image button. I have tried using MouseButton1Down, MouseButton1Click, TouchTap ( This button is going to be on mobile. ), and InputBegan.
None of these events are working for SurfaceGuis.
To test it, I have put a local script with the code below inside a local part cloned from replicated storage. This doesn’t print anything, regardless of the event type.
I have tried it both testing regularly, and using the emulator for the mobile event.
My image button is active. I am not sure what I am doing wrong here. Can anyone provide any insight?