Universal Script 📌
17.1k Views
140 Executions

Gamepass Blocker

Universal Script 📌
Transactic11
Transactic11First script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Blocks games from showing gamepasses

Updates

  1. Script edited: Create script

View Raw
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")

local function blockPrompts()
    MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, gamePassId, wasPurchased)
        if not wasPurchased then
            print("Purchase attempt blocked for game pass ID:", gamePassId)
        else
            print("Game pass purchased:", gamePassId)
        end
    end)

    MarketplaceService.PromptProductPurchaseFinished:Connect(function(userId, productId, wasPurchased)
        local player = Players:GetPlayerByUserId(userId)
        if not wasPurchased then
            print("Purchase attempt blocked for developer product ID:", productId)
        else
            print("Developer product purchased:", productId)
        end
    end)
end

blockPrompts()
print("Handling game pass and developer product prompts.")


Comments

9
Log in to join the conversation. Login
Armanpasha46ou's profile picture
Armanpasha46ou1 year ago

Bro which executive we have to use

1
Transactic11's profile picture
Transactic11Uploader2 years ago(edited)

to see if it works

1
Mr_PoopyPants's profile picture
Mr_PoopyPants2 years ago(edited)

why prints

1
Transactic11's profile picture
Transactic11Uploader2 years ago(edited)

just execute it

1
gogok's profile picture
gogok2 years ago(edited)

and pls tutorial idk how to do this

1
Transactic11's profile picture
Transactic11Uploader2 years ago(edited)

@Nahidwin1 yeah

1
gogok's profile picture
gogok2 years ago(edited)

all games?

1

More universal scripts

See all
Script hub
164.6k
562.3k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Script hub
3.0k
3.8k
Bumped 4 hours ago
Script hub
266
1.2k
14 hours ago
Key System

Script hub

#9 today

Verified script badgeBlendHub | Easy + Quick

Universal Script 📌
159
83
Approved 6 hours ago
Script hub
165
885
Approved 6 hours ago
Script hub
89
193
Approved 6 hours ago
Universal Script 📌
113
237
Approved 7 hours ago