I have a game with a gamepass but whenever I play the game it claims I don't have the pass. Is this because I'm running it in studio or because there's an error in my script?

local id = 7043626
 
game.Players.PlayerAdded:Connect(function(player)
    if game:GetService("MarketplaceService"):PlayerOwnsAsset(player,id) then
		print("pass")
	else
		print("no pass")  
    end
end)


2 comments

0

ok thanks it works now