|
| 12 Jan 2015 02:51 AM |
Is it possible to get the player when they click a GUI?
Also for let's say for only 1 player and not all the players in the server, should I edit a GUI (Let's say a script alters or changes it) from PlayerGUI or StarterGUI? And what's the difference between using a script to edit a GUI in PlayerGUI and StarterGUI? |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2015 03:13 AM |
On mobile
You put it locally and use LocalPlayer |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 12 Jan 2015 03:21 AM |
^
game.Players.LocalPlayer will access the player that clicked c: |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2015 04:34 AM |
Ah ok 2 more questions: Can I do it with a regular script? Is there any difference between editing a GUI with a script in StarterGUI and PlayerGUI?
|
|
|
| Report Abuse |
|
|
|
| 12 Jan 2015 07:10 AM |
| Yes, StarterGui replicates to all respawned or new players, so anybody who dies will see the changes you made. |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2015 07:13 AM |
| And no you cannot do that with a regular script. |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2015 07:19 AM |
| Actually as long as FilteringEnabled is off, a Script can see a Player's PlayerGui and read TextButton and ImageButton click events. |
|
|
| Report Abuse |
|
|