I'm working on a new Player Point script. After I uploaded my game pass, and I tested my place, it says I already own this item, so it would be impossible for players to add Player Points into the server anytime they want to if they paid the game pass already.
I went back into my "Purchasing" script, that's the code:
local productId = (Enter ID code here) -- change to your T-shirt/gamepass ID! local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function() --DONT CHANGE THIS Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId) end)
Yet I looked many places I could, I still come up with nothing.
DevProducts are the only thing that allow users to purchase over and over again in-game.
To create a dev product, go to "Configure Game>Developer Products>Create New"
Hope I helped, disregard my reputation. Someone spammed down votes on me for some reason, otherwise I would have up voted your post. :L
You can't add Playerpoints with Gamepasses you must create a Dev Product and put you're id's in the script
If there is any Questions i am happy to Help!
-Pardon it being in the answer category, not enough rep-
To the comment in the last answer, I am guessing that you need to use Studio to edit the object/stat.
Example: Let's say you need to edit a stat on the leaderboard, like, for instance, cash. You would use a script to manipulate the leaderstats after the purchase of the dev product.
Pardon me if it sounds confusing.