Recently, I had been watching Suphi’s DataStore videos, and noticed that he used .Activated for GUI’s. Later, I was looking in it and wondered if .Activated is some kind of “universal” event that works for any interaction types like mouse clicking, mobile tapping, etc. is .Activated actually better than MouseButton1Click, would be MouseButton1Click considered deprecated, even technically it’s not like how task.wait() exists as sole better replacement for wait(), and wait() was never officially “fully deprecated”.
Other than that, I want to know if there’s actually any advantages or disadvantages of using Activated over MouseButton1Click, unless it’s more of just specifying the click event to be exclusively for PC mouse?? What’s the really difference?
Edit: realized I confused my lefts and rights (whoops)
Activated is based on the Active property that is found on the UI element, if its disabled, the event wont fire.
MouseButton1Click just detects whether or not the user made a left click on the UI element, but it isnt reliant on the Active property.
They arent exactly the same thing, but serve a similar purpose. Though depending on your use case. One event is to detect whether or not the user is trying to use the button, while the other is trying to detect if a specific action was done to it. (hence the other event MouseButton2Click which detects a right click)
Oh.. lol, that makes sense, knew wait() should had been decrepated. Anyways, thanks for clarifying the difference between Activated and MouseButton1Click. So, Activated is good for when you just want to make a button that triggers regardless of type of input you do it, is that right? And yeah, I just realized you were right about MouseButton2Click. I should had known that part better.
Following up about the Activated, I guess there’s not really any difference in terms of performance or just being simply “better” since Activated is more of universal trigger rather than exclusively left or right mouse click. Thanks so much!