Advertisement
XiByteGam123457890

Gamepass GUI

May 7th, 2024 (edited)
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Gamepass GUI
  2. ---- ---- ---- ----
  3.  
  4. local button = script.Parent
  5. local player = game.Players.LocalPlayer
  6. local gamePassId = script.Parent.GamepassId
  7.  
  8. button.MouseButton1Click:connect(function()
  9. if player then
  10. game:GetService("MarketplaceService"):PromptGamePassPurchase(player, gamePassId.Value)
  11. end
  12. end)
  13.  
  14. ---- ---- ---- -----
  15. https://www.roblox.com/games/16800723712/WARSHIP-UPDATE-TD-WARS - PLAY MY ROBLOX GAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement