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
I believe it isn't working because a recent Roblox update now prevents player points to be purchasable.
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/