The .Activated event for GuiButtons doesn't work on the server?

If I do MouseButton1Down in a script on the server and make it print when that event is called, it works for a surfaceGui, but since my game is expanding to Mobile I felt that the new Activated event better suits my needs.

However, it appears that it only prints when put in a localscript on the client and not on the server. Is this default behavior? Is there another event I can use to make mobile and PC surfaceGui buttons work on the server?

1 Like

You can’t use MouseButton1Down on the server, because the server isn’t the one checking for input. All input functions (if not all, most) only work client-sided because the client is the one sending that input information.

No. You’ll have to do it on the client and use remotes to communicate with the server.

1 Like

I am able to do .MouseButton1Down on the server just fine, I guess that event does not work that way. Alright, thanks.

I don’t believe that’s intended behavior, nor should it be. Any input actions should always be handled on the client.

1 Like