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: Finding player from text button in surface Gui?

Previous Thread :: Next Thread 
enzotinman1 is not online. enzotinman1
Joined: 22 Jun 2012
Total Posts: 408
25 Jun 2015 06:57 PM
So i have a text button in a surface Gui and was wondering if i could get the player of who ever clicks the button?
Report Abuse
CollabsAreSlow is not online. CollabsAreSlow
Joined: 18 Jun 2015
Total Posts: 28
25 Jun 2015 07:00 PM
script.Parent.TextButtonNameHere.MouseButton1Click:connect(function(click)
-- do stuff with the click

end)
Report Abuse
enzotinman1 is not online. enzotinman1
Joined: 22 Jun 2012
Total Posts: 408
25 Jun 2015 07:04 PM
but the click is just the mouse position
Report Abuse
CollabsAreSlow is not online. CollabsAreSlow
Joined: 18 Jun 2015
Total Posts: 28
25 Jun 2015 07:10 PM
click.Parent
Report Abuse
enzotinman1 is not online. enzotinman1
Joined: 22 Jun 2012
Total Posts: 408
25 Jun 2015 07:13 PM
i got this error when doing that:
Workspace.Lobby.Part.SurfaceGui.Ready.Script:2: attempt to index local 'click' (a number value)
Report Abuse
CollabsAreSlow is not online. CollabsAreSlow
Joined: 18 Jun 2015
Total Posts: 28
25 Jun 2015 07:15 PM
derp

try mousebutton1down
Report Abuse
enzotinman1 is not online. enzotinman1
Joined: 22 Jun 2012
Total Posts: 408
25 Jun 2015 07:21 PM
Do you know what your talking about? its not in the StarterGui. its a surface gui on a part in Workspace.
Report Abuse
CollabsAreSlow is not online. CollabsAreSlow
Joined: 18 Jun 2015
Total Posts: 28
25 Jun 2015 07:34 PM
i do know what i'm talking about

the surfacegui has to be in the startergui not the part

then set the adornee variable
Report Abuse
enzotinman1 is not online. enzotinman1
Joined: 22 Jun 2012
Total Posts: 408
25 Jun 2015 07:36 PM
i was asking if i could get the player from a surface gui thats in a part. so if you cant a simple no would be fine.
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