Ok so I have a script that prints whether someone entering has a gamepass.
The script uses
local id = 000000
game.Players.PlayerAdded:connect(function(player)
local GamePassService = game:GetService("MarketplaceService")
local owns = GamePassService:PlayerOwnsAsset(player,id)
print(player,'owning the pass is', owns)
So I know that to get the item id of the gamepass you need to go into view page source and use the data-item-id and so thats what i enter.
HOWEVER, when we load into the game, only I print as having the gamepass.
Am I using the wrong number? Doing something wrong here? Please help.

4 comments
wdymbt
I mean I want to find players that bought the gamepass, but when I try my current method, I am the only one that 'owns the gamepass' when others have bought it.
ohk
you can try PlayerHasPass method to check if they have pass