Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

MouseButton1Down/MouseButton1Clicked not working on mobile?

Asked by 8 years ago

I know this sounds like a dumb question but I am 99% sure MouseButton1Down is meant to work on mobile even though the name doesn't suggest that.

Has this changed recently? Could anyone give me a good alternative and type it out, I'd really appreciate it

An example of my usage:

eventy = Button.MouseButton1Click:connect(function()
    Sounds.Press2:Play()
    wereDone()
end)

The sound doesn't play (it does on PC)

0
Now, I'm assuming it's me. I might not understand this but, why are you defining a variable to the function? Like I said, Maybe it's me. But why would you do that? I would suggest getting rid of the eventy = before your event and function to see if that's causing the problem. User#11440 120 — 8y
0
There's a reason crackabottle123 110 — 8y
0
FYI User#11440, you're capable of disconnecting events that you connect, so that you're not keeping things on the event stack indefinitely. Making a variable like that allows Crack to use 'eventy:Disconnect()' to do so =) saenae 318 — 7y

2 answers

Log in to vote
1
Answered by 8 years ago

Check this pages:

http://blog.roblox.com/2014/10/configuring-your-game-for-mobile/ http://wiki.roblox.com/index.php?title=ContextActionService_tutorial#Modifying_Button

Hope you find what you're looking for. :)

0
Cheers mate, will check them out crackabottle123 110 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

The MouseButton1Down works on my mobile device. I have both an iPad and a Laptop. I use the iPad to test if it works. I use it on my screen gui to make a menu button. It works perfectly fine to me.

0
Use comments. unmiss 337 — 8y

Answer this question