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
 

Re: who clicked a screen gui

Previous Thread :: Next Thread 
MonsterSloth is not online. MonsterSloth
Joined: 21 Nov 2012
Total Posts: 131
17 Apr 2015 08:22 PM
Is it possible to get the Player who clicked a screen gui when the script is in ServerScriptService?

function onClicked(GUI)

end
game.Players.nameOfWhoClicked.PlayerGui.NameOfGui.NameOfButton.MouseButton1Up:connect(onClicked)


can you use this MouseClick:connect(function(Plyr) some how?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
17 Apr 2015 08:25 PM
The gui is in the PlayerGui right?
The PlayerGui is in the Player


local player = gui.Parent.Parent
Report Abuse
MonsterSloth is not online. MonsterSloth
Joined: 21 Nov 2012
Total Posts: 131
17 Apr 2015 08:29 PM
yes but the script is in ServerScriptService
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
17 Apr 2015 08:31 PM
screen guis

do not

do

not

go inside server script service

they go inside the startergui

which copies them to the playergui which is in the player
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
17 Apr 2015 08:32 PM
misread

why is your script in serverscriptservice

(lol thought you put your gui there)

it should be a localscript most likely in some part of the gui you are controlling

so you can access the player easily
Report Abuse
MonsterSloth is not online. MonsterSloth
Joined: 21 Nov 2012
Total Posts: 131
17 Apr 2015 08:35 PM
i understand that. yes the gui is in the starter gui.i am asking Is it possible to get the Player who clicked a screen gui when the script is in ServerScriptService?
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
17 Apr 2015 08:44 PM
RemoteEvents
Report Abuse
MonsterSloth is not online. MonsterSloth
Joined: 21 Nov 2012
Total Posts: 131
17 Apr 2015 08:54 PM
ok thanks, i am reading now. does FilteringEnabled need to be true to use RemoteEvents?
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
17 Apr 2015 08:55 PM
No, but if FE is on, then you need RemoteEvents. I just never change anything inside the player from a script
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