Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How to Check Who Clicked? -Surface GUIs-

Asked by 10 years ago

When using surface GUIs, how do you check to see WHO was the person to click a button? This is the only part I need, I have all the MouseButton1Click stuff, just need to know how to check WHO clicked it.

2 answers

Log in to vote
0
Answered by
Vathriel 510 Moderation Voter
10 years ago

Alright, so surface Guis are normally placed on parts, thats how most users go about them, however for LOCAL uses like this, you actually put them in StarterGui and set the Adornee to the part. This will allow you to know who clicked because afterall it ends up in their PlayerGui like a regular Gui except now, it's adorned to a part.

Ad
Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
10 years ago

Anything dealing with GUIs should be handled locally, so a script running on the client should be detecting all of the events and then requesting for a server-sided script to do something if necessary. It isn't necessary to hold the GUIs on the client, only the connections.

Answer this question