Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to detect a held down button on mobile? [ANSWERED]

I am currently creating a system for a dragon breathing fire, and I have it working on PC. But, mobile doesn't have a keyboard easily ready, so you can't press "F" on mobile. I have created a button, but I don't know how to tell if the mobile user has it held down. When the button is tapped, it will fire the server telling it too start the fire, and when the touch ends, it fires another event to stop the fire. Any ideas? I have been doing some research, and I have not found out much. Thanks in advance.

ItzHiimnew

1 answer

Ok. I used MouseButton1Down and used the TouchEnded event from UIS.

This discussion is preserved as it was. New answers, comments, and votes are closed.