Universal Script 📌
17.1k Views
113 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

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
21.1k
74.4k
Bumped 41 minutes ago
Key System
Script hub
601.1k
48.7k
Bumped 50 minutes ago
Script hub
7.0k
54.9k
Bumped 3 hours ago
Universal Script 📌
154
20
Approved 3 hours ago
Script hub
13.3k
63.3k
Bumped 4 hours ago
Script hub
2.6k
7.7k
Bumped 5 hours ago
Key System