seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
|
| 31 Jan 2015 08:14 PM |
local sp = script.Parent
local button_100 = sp:findFirstChild("100")
button_100.MouseButton1Down:connect(function() print("100") end)
I have this in a localscript in the surface gui. |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2015 08:17 PM |
| Surface GUI's work the same way Screen GUI's work. So if it worked in a screen GUI, it would work in a surface GUI. |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2015 08:20 PM |
| Unless it uses LocalPlayer. |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2015 08:22 PM |
| Ahh, true enough, this is a way to bypass this, just use the mouse function, and get the player who clicked it. |
|
|
| Report Abuse |
|
|
seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
|
| 31 Jan 2015 08:23 PM |
| This script works in a screengui but it doesn't work in the surface gui I also have filtering enabled enabled. |
|
|
| Report Abuse |
|
|
seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
|
| 31 Jan 2015 08:25 PM |
@SaluteMeScrub
can you give me a example? |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2015 08:33 PM |
| Sure! Give me a few minutes. |
|
|
| Report Abuse |
|
|
seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
| |
|
|
| 31 Jan 2015 09:03 PM |
local part = workspace.Part local button = script.Parent.Frame.TextButton script.Parent.Adornee = part button.MouseButton1Down:connect(function() button.Text = "Hi?" end)
Sorry it took awhile, had to do something. |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2015 09:06 PM |
| You have to put SurfaceGUI inside StarterGUI, and put the script inside SurfaceGUI. |
|
|
| Report Abuse |
|
|