Difference between Button.MouseButton1Click and Button.Activated

This post is probably in the wrong category, but I don’t know where else to put it on.

What is the difference between Button.MouseButton1Click and Button.Activated? It seems to be doing the same.

The former, as its name implies, fires on mouse button 1 click. The latter fires when it is activated. Fun fact, its event listeners get an input object.

button.Activated:Connect(function(input)
    print(input, input.UserInputType, input.UserInputState)
end)
5 Likes