|
| 17 Feb 2014 03:13 PM |
| Can you not use a textbutton in a surface gui? My mouse enter and mousebutton1down events are not being fired. I can verify that the Gui is in PlayerGui, and uses the Adornee method. |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 03:18 PM |
| This place isn't helpful at all. Ever since the scripters forum was made, you can't ever do anything. |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 03:22 PM |
| I am sick of this. I have helped so many people numerous times. |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 17 Feb 2014 03:27 PM |
| Are you sure you are capitalizing it correctly? Are you calling your functions? |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 17 Feb 2014 03:29 PM |
If you did try putting this...
function onClick() print("It worked!") script.Parent.MouseButton1Down:connect(onClick) |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 03:31 PM |
Yes, I am sure.
Heres the code:
SelectJob.DeliveryMan.MouseButton1Down:connect(function() print("THE FRIKEN TEST WORKED") end)
SelectJob.DeliveryMan.MouseEnter:connect(function() print("JobSystem; VcDDeliveryControl; Mouse entered the deliveryman job button.") SelectJob.CashierDesc.Visible = false SelectJob.CookDesc.Visible = false SelectJob.DeliveryManDesc.Visible = true end)
SelectJob.Cashier.MouseEnter:connect(function() SelectJob.CashierDesc.Visible = true SelectJob.CookDesc.Visible = false SelectJob.DeliveryManDesc.Visible = false end)
SelectJob.Cook.MouseEnter:connect(function() SelectJob.CashierDesc.Visible = false SelectJob.CookDesc.Visible = true SelectJob.DeliveryManDesc.Visible = false end) |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 17 Feb 2014 03:35 PM |
| It looks good... Maybe you should try just putting a click detector in the block that the surface GUI is on and just run with that... |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 03:37 PM |
| There are three buttons. Its not one large one. |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 17 Feb 2014 03:42 PM |
Did you index your variables properly?
function onSwag(gerov) |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 03:46 PM |
| TextButtons don't work with SurfaceGuis. |
|
|
| Report Abuse |
|
|
dodleman
|
  |
| Joined: 22 Dec 2007 |
| Total Posts: 1118 |
|
|
| 17 Feb 2014 03:48 PM |
Here's OP
"Damn it's been 5 minutes and nobody's helped me, better just rage about how I help everyone" |
|
|
| Report Abuse |
|
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 17 Feb 2014 03:50 PM |
@Zero, And you're basing that on...?
They work perfectly fine. The only downside to using a SurfaceGui, in Workspace, is that you cannot get the player who clicked the button.
|
|
|
| Report Abuse |
|
|