Advertisement
Sungmingamerpro13

GamepassItems(STORY GAME)

Oct 9th, 2022
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local MarketPlaceService = game:GetService("MarketplaceService")
  2. local Player = game.Players.LocalPlayer
  3.  
  4. for i, Button in pairs(script.Parent:GetChildren()) do
  5. if Button:IsA("ImageButton") or Button:IsA("TextButton") then
  6.  
  7. local GamepassID = Button:FindFirstChild("ID")
  8.  
  9. MarketPlaceService:PromptGamePassPurchase(Player, GamepassID.Value)
  10. end
  11. end
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement