game.Players.PlayerAdded:Connect(function(player) if game:GetService("MarketplaceService"):PlayerOwnsAsset(player, 2070427) == false then print("false") else print("true") end end)
it prints false but its the swat gamepass from jailbreak that i tested with and i do own it
Try this:
game:GetService("Players").PlayerAdded:Connect(function(player) if game:GetService("MarketplaceService"):PlayerHasPass(player, 2070427) then print(player.Name..' Owns The Gamepass') else print(player.Name..' Doesn\'t Own The Gamepass') end end)