|
| 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 |
|
|
|
| 25 Jun 2015 07:00 PM |
script.Parent.TextButtonNameHere.MouseButton1Click:connect(function(click) -- do stuff with the click
end)
|
|
|
| Report Abuse |
|
|
|
| 25 Jun 2015 07:04 PM |
| but the click is just the mouse position |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|