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

MouseButton1Down/MouseButton1Clicked not working on mobile?

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)

3 comments

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.

0

There's a reason

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 =)

2 answers

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.

1 comment

0

Use comments.

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