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

My Gui game pass is not working?

Asked by 8 years ago
01im trying to add $1000 to a game pass but nothing is happening
02 
03buybutton = script.Parent
04msp = game:GetService("MarketplaceService")
05id = 421785175 --pruduct id here
06p = game.Players.LocalPlayer
07buybutton.MouseButton1Click:connect(function ()
08    msp:PromptPruductPurchase(p,id)
09end)
10local passId = 421785175 --gamepass ID
11local marketplaceService = game:GetService("MarketplaceService")
12 
13local passId = 421785175 -- change this to your game pass ID
14function isAuthenticated(player) -- checks to see if the player owns your pass
15    return game:GetService("GamePassService"):PlayerHasPass(player, passId)
View all 35 lines...

Answer this question