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?
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
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.