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

2 comments
Wow Really I didn't know that Thanks!
np