SHARE
TWEET

[GUI] FREE GAMEPASSES FOR ROBLOX

SirMeme Mar 30th, 2019 21,966 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
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
 
Top