Eclipsin
|
  |
| Joined: 09 Feb 2012 |
| Total Posts: 5197 |
|
|
| 03 Sep 2014 08:08 PM |
trying to get a player/character (either one, doesn't matter) when a surfacegui's textbutton is clicked
how would i go about doing that, since i can't use a localscript
function onClick()
-- no idea what to do here
end
script.Parent.MouseButton1Click:connect(onClick) |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2014 08:10 PM |
function onClick(plr) print(plr.Name) print("nob") end
script.Parent.MouseButton1Down:connect(onClick) |
|
|
| Report Abuse |
|
|
Eclipsin
|
  |
| Joined: 09 Feb 2012 |
| Total Posts: 5197 |
|
|
| 03 Sep 2014 08:11 PM |
"21:11:41.757 - Workspace.Part.SurfaceGui.Frame.TextButton.Script:3: attempt to index local 'plr' (a number value)"
-{E_ |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2014 08:14 PM |
i tralld u local scripts are only way nob |
|
|
| Report Abuse |
|
|
Eclipsin
|
  |
| Joined: 09 Feb 2012 |
| Total Posts: 5197 |
|
| |
|
|
| 03 Sep 2014 08:21 PM |
says the nob that does 'MouseButton1Click' stfu |
|
|
| Report Abuse |
|
|