|
| 31 Mar 2015 12:14 PM |
script.Parent.MouseButton1Click:connect(function() local marketId = 23032507 link:PromptProductPurchase(plr,marketId) link.ProcessReceipt = function(receiptInfo) if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId == plr.userId then if deb == 0 then deb = 1 plr.leaderstats.Points.Value = plr.leaderstats.Points.Value + 25 wait(1) deb = 0 end end end end)
This is in an ImageButton inside of a SurfaceGui and won't even show that it's being clicked. Should I use a ClickDetector instead, or..? |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 31 Mar 2015 12:15 PM |
| SurfaceGui's can not detect client events if it's on the server. |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 31 Mar 2015 12:15 PM |
| Make sure the SurfaceGui is Enabled. |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2015 12:17 PM |
The surface gui is enabled.
|
|
|
| Report Abuse |
|
|
|
| 31 Mar 2015 12:17 PM |
| morash, I've seen it work in Ripull's minigames |
|
|
| Report Abuse |
|
|
| |
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 31 Mar 2015 12:50 PM |
| That's not in the workspace, it's in your PlayerGui. |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2015 12:52 PM |
Place the SurfaceGui in your PlayerGui.
With a LocalScript, do this: YourSurfaceGUI.Adornee = YourPart |
|
|
| Report Abuse |
|
|