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

Why Does this script do not give PP's when DevProduct is Bought?

Asked by
Mauvn 100
9 years ago

Hello, i have a Playerpoint market inside my game but when a player buy's this it Doesn't award the player Playerpoints. Everykind of help is appreciated!

local RemoteFunction = Instance.new("RemoteFunction")
RemoteFunction.Parent = Workspace
RemoteFunction.Name = "Ids"
RemoteFunction.Archivable = false

local Ids = { --Put my Dev Id's Here
    20271389;
    20118644;
    20129888;
    20118662;
    20118655;
    20118651;
    20118637;
    20129910;
    20129922;
    20129924;
    20129930;
}
game:GetService("MarketplaceService").ProcessReceipt = function(Info)
    local ProductInfo = game:GetService("MarketplaceService"):GetProductInfo(Info.ProductId,"Product")
    pcall(function()
        game:GetService("PointsService"):AwardPoints(Info.PlayerId, tonumber(ProductInfo.Name))
    end)
    return Enum.ProductPurchaseDecision.PurchaseGranted
end

RemoteFunction.OnServerInvoke = function(Player)
    return Ids
end

3 answers

Log in to vote
0
Answered by 9 years ago

I believe it isn't working because a recent Roblox update now prevents player points to be purchasable.

0
Wow Really I didn't know that Thanks! Mauvn 100 — 9y
0
np AwsomeSpongebob 350 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

Player Points are no longer purchasable as of June 23, 2014.

"One trend many of you have noticed is the Player Points “store,” a ROBLOX place where you can go to buy Player Points. This is decidedly not in the spirit of the game. Player Points are not meant to be purchased, nor are they a currency. They’re a site-wide, cross-game measure of your achievements; a fun meta game that gives you a chance to show your skill and move up on global, clan, and individual game leaderboards."

Source: http://blog.roblox.com/2014/06/a-pair-of-player-experience-updates/

Log in to vote
0
Answered by 9 years ago

Did That Script Works?

Answer this question