generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Getting player from MouseButton1Down

Previous Thread :: Next Thread 
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
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
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
12 Jan 2015 03:13 AM
On mobile

You put it locally and use LocalPlayer
Report Abuse
Goulstem is not online. 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
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
12 Jan 2015 07:13 AM
And no you cannot do that with a regular script.
Report Abuse
TecmagDiams is not online. TecmagDiams
Joined: 18 Sep 2008
Total Posts: 1882
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image