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

How do I code a gamepass shop in my game?

Asked by
goodlead -62
4 years ago

I know that first I have to make the gamepass, then I have to script it out with a GUI.

If you answer this CORRECTLY I will ACCEPT your answer.

2 answers

Log in to vote
0
Answered by
iivSnooxy 248 Moderation Voter
4 years ago
01local mps = game:GetService("MarketplaceService")
02 
03local id = 7550418
04 
05local player = game.Players.LocalPlayer
06 
07 
08script.Parent.MouseButton1Click:Connect(function()
09 
10    mps:PromptGamePassPurchase(player, id)
11end)
12 
13 
14local mps = game:GetService("MarketplaceService")
15 
View all 24 lines...
Ad
Log in to vote
0
Answered by 4 years ago

https://www.roblox.com/library/5186755643/ My shop model with a open-close button.

0
Uh sorry but I do not want your free model sir, I wanted an explaination. goodlead -62 — 4y
0
Oh ok. DaNinjaRoblox23 7 — 4y
0
Don’t be sad ninja iivSnooxy 248 — 4y

Answer this question