Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Not awarding player, with no debug error?

Asked by 11 years ago

For whatever reason this does not award the player their player points they bought, and it does not show any error in the debug. Any idea?

This works with buying extra cash, but not player points for some reason, even tried prints and nothing showed up.

01local Service = Game:GetService("PointsService")
02 
03local Products={
04    ["0"]=2,
05    ["0"]=5,
06    ["0"]=10,
07    ["0"]=50,
08    ["0"]=500
09}
10 
11local Prompt = Game:GetService("DataStoreService"):GetDataStore("PurchaseHistory")
12 
13Game:GetService("MarketplaceService").ProcessReceipt=function(Receipt)
14    local PlayerProductKey = Receipt.PlayerId.."_"..Receipt.PurchaseId
15    for _,Player in pairs(Game.Players:GetChildren())do
View all 26 lines...
0
Such bold, much wow. OniiCh_n 410 — 11y

2 answers

Log in to vote
1
Answered by 11 years ago

Could it possibly be that there is no error, but you are not authorized to award points?

Ad
Log in to vote
0
Answered by
OniiCh_n 410 Moderation Voter
11 years ago

You must HAVE Player Points to AWARD Player Points. To get PP as a dev, players need to buy game passes or DevProducts.

Ex) Player buys R$10 worth of DevProducts. PP are awarded to the developer on a 1:3 (1 PP for every R$3 spent) You can then award those points back to the players, but you must have points to begin with!

Answer this question