If Player owns gamepass

I have more of a question then an actual script. Can you detect if a player has a gamepass. And if so can exploiters find a way to give themselves a certain gamepass without actually achieving it.

Exploiters cannot give themselfs gamepassses only if you don’t have a Remote from client to Server where the Server Script gives a gamepass. With this code you can see if a user owns a gamepass:

local MarketPlaceService = game:GetService("MarketPlaceService")
local GamePassId = 000 -- Put ur GamePass id
local Succes,IsSubscribed = pcall(function()
       return MarketPlaceService:UserOwnsGamePassAsync(Player.UserId,GamePassId)
end)
if Succes then
        if IsSubscribed then
               -- The player owns the gamepass, do your code.
       end
else
      warn(IsSubscibed)
end
7 Likes

Exploiters have the power to access everything except for ServerStorage and ServerScriptService.

So they can do anything that a local script is capable of doing.

1 Like