How do I get mobile surfacegui mouse button detect working?

I think this is the right topic, due to I have to script, so I am making purchase buttons on a surface gui, and like normal things you do

script.Parent.MouseButton1Click

etc. But in the past I have noticed games would always make a donation board in UI and board, due to mobile apparently can’t use it, in the past, to get around it I made it to do it on hover, but after people complaining it kept opening I had to revert it, how can I detect mobile hit on surface ui buttons?

1 Like

Useful, but that isn’t detecting a click of text button is it?

You’ll have to use the UIS (UserInputService), otherwise it won’t work. You can’t use a mouse event with something that doesn’t use a mouse if that makes sense.

I can’t help much more than this because I’ve never done it but this should help you get in the right direction.

2 Likes