I am trying to create a developer product that gives the player a tag which displays how much robux the player has donated, and gives the player a tag in chat. Currently I’m just trying to make the script actually work first.
local MarketPlaceService = game:GetService("MarketplaceService")
local gui = game:GetService("StarterGui")
local players = game:GetService("Players")
local productID = 1367741903
local function processReceipt(receiptInfo)
local player = players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.PurchaseId == productID then
if player then
print("This Works") --I just want to make sure it works first, so im printing.
end
end
end
MarketPlaceService.ProcessReceipt = processReceipt
I gotta tell you something, from what I know, you are not allowed to display personal info of a player in game, and if I’m not wrong Robux are part of it, so you would t be able to do that, unless with Rovuz you mean an in game currency, in that case change the name because you can’t use names like Robux or Roblox
I dont think this is entirely accurate from what I’ve seen. You should be fine, I’m seen games display this on donation boards and on nametags which is similar to what he is doing.
local MarketPlaceService = game:GetService("MarketplaceService")
local gui = game:GetService("StarterGui")
local players = game:GetService("Players")
local productID = 1367741903
local function processReceipt(receiptInfo)
local player = players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == productID then
if player then
print("This Works") --I just want to make sure it works first, so im printing.
end
end
end
MarketPlaceService.ProcessReceipt = processReceipt