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

How do you make a gamepass that you can I buy inside the game?

Asked by 10 years ago

So, I'am making a gamepass and I want to know how you can make a gamepass that you can buy a inside the game.

4 answers

Log in to vote
1
Answered by
User#2 0
10 years ago

Use the MarketplaceService's PromptPurchase method to have the player be prompted to buy an asset, such as your game pass.

Ad
Log in to vote
0
Answered by 7 years ago

gamepass roblox wiki :/

Log in to vote
0
Answered by 4 years ago
local player = game.Players.LocalPlayer
local MarketplaceService = game:GetService
local id = IDHERE

script.Parent.MouseButton1Click:connect(function() --If you want a gamepass GUI, keep this. If not just delete this line and the end)
      MarketplaceService:PromptPurchase(player, id)
      if MarketplaceService:UserOwnsGamePassAsync(player.UserId, id) then
           --Your script goes here
      end
end)

This should work.

Log in to vote
-1
Answered by 10 years ago

you don't need to use scripts! copy and past this link in rob lox studio then install the plugin. after, enter the world you want it on. go to the top right corner and you'll see the R$ click that and find the store in the explorer panel. click on it then enter in the game pass id and click enter! there you have it!

Answer this question