Advertisement
Cakey3101

Gamepass Shop Server

May 16th, 2025
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | Source Code | 0 0
  1. local MarketPlaceService = game:GetService("MarketplaceService")
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3.  
  4. local Remotes = ReplicatedStorage.Remotes
  5.  
  6. MarketPlaceService.PromptGamePassPurchaseFinished:Connect(function(Player: Instance, GamepassID: number, WasPurchased: boolean)
  7.     if WasPurchased then
  8.         Remotes.GamePassPurchased:FireClient(Player, GamepassID)
  9.     end
  10. end)
Tags: robloxstudio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement