Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

2 comments

0

Wow Really I didn't know that Thanks!

0

np

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/

This discussion is preserved as it was. New answers, comments, and votes are closed.