TomsGames
|
  |
| Joined: 11 Oct 2013 |
| Total Posts: 1615 |
|
|
| 16 Feb 2014 09:16 AM |
If I am trying to make a function run when the textbutton is clicked is this right:
StarterGui > ScreenGui > TextButton > Local script
In the localscript I have
button = script.Parent
function DOSTUFF() --stuff end
button.MouseButton1Down:connect(DOSTUFF) |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2014 09:36 AM |
| just put it in a normal script |
|
|
| Report Abuse |
|
|
TomsGames
|
  |
| Joined: 11 Oct 2013 |
| Total Posts: 1615 |
|
|
| 16 Feb 2014 09:36 AM |
| Normal script? Why? It's only designed to run for the player with the gui, which is local! |
|
|
| Report Abuse |
|
|
| |
|
TomsGames
|
  |
| Joined: 11 Oct 2013 |
| Total Posts: 1615 |
|
|
| 16 Feb 2014 09:41 AM |
| Localscripts are quicker though since they're run on the client. Also it doesn't work in either script OR localscript, so I'm pretty sure the connecting function is wrong. |
|
|
| Report Abuse |
|
|
duckwit
|
  |
| Joined: 08 Aug 2008 |
| Total Posts: 1310 |
|
|
| 16 Feb 2014 09:52 AM |
| Is the TextButton Active? It's Active property must be set to true for mouse events to be fired. |
|
|
| Report Abuse |
|
|