Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketPlaceService = game:GetService("MarketplaceService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Remotes = ReplicatedStorage.Remotes
- MarketPlaceService.PromptGamePassPurchaseFinished:Connect(function(Player: Instance, GamepassID: number, WasPurchased: boolean)
- if WasPurchased then
- Remotes.GamePassPurchased:FireClient(Player, GamepassID)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement