Advertisement
EconomicSerg

Roblox MarketplaceService

Feb 8th, 2021
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local id = "" -- Change this to your id. Remove the quotes
  2. local marketplaceService = game:GetService("MarketplaceService")
  3. local player = game.Players.LocalPlayer
  4.  
  5. -- Make sure this is a button
  6.  
  7. script.Parent.MouseButton1Click:Connect(function()
  8.         marketplaceService:PromptGamePassPurchase(player, id) -- Change this to PromptProductId if you are using a product
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement