local martket = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
if martket:UserOwnsGamePassAsync(player.UserId, 1654145049) then
print(player.Name)
end
end)
Place this script in ServerScriptService, if you do not own it, it wont print it.
Just add a else to confirm this.
local MarketplaceService = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, 1654145049) then
print(player.Name, "owns this gamepass")
else
print(player.Name, "does not own this gamepass")
end
end)