Mouse button click code

I was wondering what does mouse button click do and will they work in mobile. Why we need them isn’t clicked.connect a thing ?

What line of code I need mouse button click?

Wherever you need to implement it.

GuiButton.MouseButton1Click fires on mobile as well, but for the sake of consistency (also since MouseButton events will be deprecated in the future) use GuiButton.Activated (remember that this doesn’t replicate unlike MouseButton events).


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.