Get all gamepass V3 (Most optimized version)
Key RequiredUniversal

Get all gamepass V3 (Most optimized version)

Universal ScriptMEGAxkMEGAxk 20.8K views 3.6K executesUpdated Dec 16, 2025
5.0/ 5(3 votes)
30100% Positive
Lua Script•110 lines (3418 chars)
--[[ 
Script by MegaXk 👨‍💻
Corrected version (⚠️Warning: this script may not always work, it has a chance of not working and it doesn't give you Gamepass. This script may work on poorly made games)
]]
 
local player = game.Players.LocalPlayer
local marketplace = game:GetService("MarketplaceService")
local http = game:GetService("HttpService")
local replicatedStorage = game:GetService("ReplicatedStorage")

local function showRobloxNotification(title, text, duration)
    game:GetService("StarterGui"):SetCore("SendNotification", {
        Title = title,
        Text = text,
        Duration = duration or 4
    })
end

local function getGameName()
    local success, info = pcall(function()
        return marketplace:GetProductInfo(game.PlaceId)
    end)
    return success and info.Name or "Unknown Game"
end

local function getGamepassIds()
    local url = "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/game-passes?limit=100"
    local success, response = pcall(function()
        return http:GetAsync(url)
    end)
    if not success then return {} end
    local data = http:JSONDecode(response)
    local ids = {}
    for _, v in pairs(data.data or {}) do
        table.insert(ids, v.id)
    end
    return ids
end

local function getProductIds()
    local url = "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/developer-products?limit=100"
    local success, response = pcall(function()
        return http:GetAsync(url)
    end)
    if not success then return {} end
    local data = http:JSONDecode(response)
    local ids = {}
    for _, v in pairs(data.data or {}) do
        table.insert(ids, v.id)
    end
    return ids
end

local function bypassUserOwns()
    local mt = getrawmetatable(game)
    if not mt then return end
    local oldNamecall = mt.__namecall
    setreadonly(mt, false)
    mt.__namecall = newcclosure(function(self, ...)
        local method = getnamecallmethod()
        if self == marketplace and method == "UserOwnsGamePassAsync" then
            return true
        end
        return oldNamecall(self, ...)
    end)
    setreadonly(mt, true)
end

local function triggerGamepassRewards(ids)
    local promptEvent = replicatedStorage:FindFirstChild("PromptGamepassPurchaseFinished")
    if not promptEvent then return end
    for _, id in pairs(ids) do
        pcall(function()
            promptEvent:FireServer(player.UserId, id)
        end)
    end
end

local function triggerProductRewards(ids)
    for _, id in pairs(ids) do
        pcall(function()
            marketplace:SignalPromptProductPurchaseFinished(player.UserId, id, true)
        end)
    end
end

local function disablePromptHook()
    if not marketplace.PromptProductPurchaseFinished then return end
    local oldConnect
    oldConnect = hookfunction(marketplace.PromptProductPurchaseFinished.Connect, function(self, func)
        if self == marketplace.PromptProductPurchaseFinished then
            return
        end
        return oldConnect(self, func)
    end)
end

-- Execução principal
local gameName = getGameName()
local passIds = getGamepassIds()
local productIds = getProductIds()

bypassUserOwns()
disablePromptHook()
triggerGamepassRewards(passIds)
triggerProductRewards(productIds)

showRobloxNotification("Name Game: " .. gameName, "Your game is probably eligible for the code to work 💠", 4)

warn("[SYSTEM] Script executed. Simulated rewards successfully applied.")

Features & Information

This script is designed for the Roblox environment to LOCALLY simulate ownership of all Gamepasses and Developer Products, tricking the game into believing the player has purchased them without any real transaction. ( ⚠️When you leave, you lose what you gained; it's not permanent. )

Community Comments (15)

KinginaKinginaDec 16, 2025

How tf does this work?

Replying to @Kingina
WallaceeWallaceeDec 16, 2025

@Kingina will print all the gamep*ess of the game on the console

Ratman39828Ratman39828Dec 16, 2025

The rat man is happy

l3onpollak1l3onpollak1Dec 16, 2025

can someone please explain on how to use this? where and what do i have to change for it to work and if it work on seliware

Replying to @l3onpollak1
MEGAxkMEGAxkDec 17, 2025

@l3onpollak1 Yes, you have to enter the game ID to get all the game passes; the script doesn't work for some games.

l3onpollak1l3onpollak1Dec 17, 2025

thanks for the reply. I saw you posted a new version and i already commented on that. But i will also ask here, how do i know which games work or not? also thanks for your work

MR_ROBOTMR_ROBOTDec 19, 2025

Doesn't working

Replying to @MR_ROBOT
seifahmedali16seifahmedali16Sep 4, 2026

@MR_ROBOT it doesnt work for all games

tintian415tintian415Jan 6, 2026

im sorry im new but im usually do is copythe script here then execute, do i need to edit this before ti execute in delta? Amd how😭

JejshehJejshehFeb 22, 2026

Im confused, in which areas do i enter the id????

Byp*BoomboxOKByp*BoomboxOKMar 16, 2026

Ok but what if i join a game that has a gamepass ingame, not in the actual game's store?

zohanhermoso15zohanhermoso15Apr 9, 2026

guys when i try in brookhaven and guts and blackpowder dosent work can someone help me please tell me the whole process i have tried 20 other games

Replying to @zohanhermoso15
ArkanMikailArkanMikailApr 22, 2026

@zohanhermoso15 maybe you're trying on a top game on Roblox, usually top games on Roblox have a marketplace security system

MEGAxkMEGAxkApr 22, 2026

The previous script you were talking about was made to register all GamePass subscriptions on the console (I made that script to prevent GamePass subscriptions), but this new version of the script was made to capture them Gamepass please don't criticize me 🙏 (Sorry for previously putting: Get all Gamepass in the first version of the script) Sorry! The script may not work if the game is very anti-cheat (if it has very strong security). The true intention of the script is: To trick the game into believing that the player has the Gamepass. See the description for more details!

ArthuriLArthuriLMay 10, 2026

where do you enter the game id?

More Scripts for Universal Scripts