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

How can people claim PlayPoints after getting them through Develepor Products? -- UNSOLVED

It would be nice if I could get a script that allows a to collect player points via developer products after clicking a screenGUI.

2 answers

I wouldn't suggest making this because ROBLOX players don't like this kind of thing. Make it so you need to do something for points. The point of points is to show your experience on ROBLOX, not to show that you paid a whole bunch of money.

2 comments

0

Tell that to lomo0987

0

Yes, but you have to earn it on that game. As far as I can see you're just making a Buy-player-Points game.

It isn't recommended that you give points for purchasing Developer products, as the primary purpose of it is to be free and game experience-earned.

This script just basically does that, if you want to continue with it. You can add other stuff in the ProcessReceipt function for other things that you can gave them.

local plr = game.Players.LocalPlayer
local productId = 13423423

Game:GetService("MarketplaceService"):PromptProductPurchase(plr, productId)
local MarketplaceService = Game:GetService("MarketplaceService")
MarketplaceService.ProcessReceipt = function(receiptInfo)
	local PointsService = Game:GetService("PointsService")
	local pointsToAward = PointsService:GetAwardablePoints()
	local universeBalance = PointsService:GetGamePointBalance(plr.userId)
	
	if (pointsToAward > 0 and universeBalance == 0) then
		PointsService:AwardPoints(plr.userId, 1)
	end
	
	return Enum.ProductPurchaseDecision.PurchaseGranted
end

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