Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I make a purchasable Game pass that can be re-paid?

Asked by 10 years ago

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.

3 answers

Log in to vote
0
Answered by 10 years ago

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

0
Wow Thank you! It's working! :D SpicyBuilderclub 10 — 10y
0
When I create it, will I be able to "Manipulate" it on the Web-site or must I use Roblox Studio to edit the item you need to purchase? SpicyBuilderclub 10 — 10y
0
I don't understand what you are asking. If you mean edit the price, that is next to the dev product ID on the configure game page. DominusAstra -2 — 10y
0
Ok, I managed to make a Developer Product, now it might be my last question; The DevProduct gave me a link when it got created, must I put it in the DevProduct on the Studio in order to make it active? SpicyBuilderclub 10 — 10y
0
You would use it in marketplaceservice, for example... game.MarketplaceService:PromptProductPurchase(plrid,ProductId) DominusAstra -2 — 10y
Ad
Log in to vote
-1
Answered by
Mauvn 100
10 years ago

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!

0
That's what I did, I added the ID link of the game pass in the Dev Product Script. SpicyBuilderclub 10 — 10y
0
If you didn't see i said to create one! Mauvn 100 — 10y
Log in to vote
-1
Answered by 10 years ago

-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.

0
Thanks to a noob who downvoted everything, we are just trying to help. Is that bad? AwsomeDanKid 0 — 10y

Answer this question