|
| 21 Nov 2016 04:59 PM |
ok so i got this button that when you press it, it prompts you purchase for a gamepass in a local script. there's this in a global script: function MarketplaceService.ProcessReceipt(rinfo) print('reached!') local playerProductKey = rinfo.PlayerId .. "_:" .. rinfo.PurchaseId if PurchaseHistory:GetAsync(playerProductKey) then return Enum.ProductPurchaseDecision.PurchaseGranted end local Player = game.Players:GetPlayerByUserId(rinfo.PlayerId) table.insert(Gamepasses, rinfo.ProductId) print('added!') ChangeEvent:Fire() print('fired!') PurchaseHistory:SetAsync(playerProductKey, true) return Enum.ProductPurchaseDecision.PurchaseGranted end
it won't even print "reached!"!!! why is this?? wtf it worked before why now :( all variables are defined and there aren't any other processreceipts
|
|
|
| Report Abuse |
|
|
|
| 21 Nov 2016 05:04 PM |
| idk its right but roblox wont run the script thats the problem roblox makes it so you can have a script run |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2016 05:06 PM |
"roblox makes it so that you can have a script run" please.. if you don't know then don't comment
|
|
|
| Report Abuse |
|
|
|
| 21 Nov 2016 05:14 PM |
lol im suprised you guys haven't noticed i said "gamepass"
|
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 21 Nov 2016 05:15 PM |
| Your attitude is horrendous. |
|
|
| Report Abuse |
|
|