For example, a part can detect a player with GetPlayerFromCharacter(Hit.Parent) and a tool can detect it in a similar fashion. So I was wondering if it were possible to do something like this with a text button, and avoid using localscripts and remote events
Nope! Not at all. You can’t. Case closed. Nada. 0. Nothing. Bye bye! End of story. I recommend you use RemoteEvents
or handle some of it on the client
Unless there’s just some way
Why isn’t is possible to detect it that way, though?
Sadly when it comes to Guis and other client stuff the only way to tell the server about the click is to send a remote event, that’s why you should secure it server-side to make sure no values have been tampered with
Because it isn’t replicated to the server. Period. Creating some kind of “property” or value that is whatever button the client is pressing is no different from sending a remoteevent. The client and server are two different computers, and they are usually far away. That’s how networking is.