Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[Answered] I dont seem to have a gamepass even though I created it?

Asked by 4 years ago
Edited 4 years ago

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)


Answer this question