How to check if a player owns a Gamepass from a DIFFERENT game

Hi! Im thinking about re-uploading my game thats originally tied to my account, into my group. However people have already bought gamepasses on the original game.

Is there a way to detect if players have the gamepass from the original so that I can give them the stuff they bought?

1 Like

You can still check if a player owns a gamepass despite if you are or not the owner of the game this one comes from. UserOwnsGamePassAsync works with all gamepasses, even if they come from other game.

-- LocalScript
local player = game.Players.LocalPlayer
local MarketPlaceService = game:GetService("MarketplaceService")
local ID = 0

if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, ID) then
	print("player owns gamepass")
    -- This build-in function also works on server btw
end
3 Likes

correct me if i’m wrong, but…

instead of reuploading the same game on your group, shouldn’t you just do an ownership transfer?

it will be easier, and you will not need to do any gamepass/script changes

1 Like

is that possible? I never heard of it… Thats great if thats a feature! Can you send me a link to a tutorial?

I think i found it, is it this? Experience ownership transfer | Documentation - Roblox Creator Hub

yep. that’s it.

best thing about it is that the players you had will just jump right back in. instead of having to go through that “new game” process of getting attraction/players again.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.