Im making a game with multiple gamepasses in it so I created a gui that lets you buy gamepasses, but when I put in the i'd, one said would you like to buy this image, and the others said this items not for sale. I dont think it's looking at the right id's and I have no idea why.
This is the script I was trying to use to see if my gamepasses registered.
local id = 5347758
game.Players.PlayerAdded:Connect(function(player)
if game:GetService("GamePassService"):PlayerHasPass(player, id) then
print(player.Name .. " has the game pass!")
else
print(player.Name .. " doesn't have the game pass...")
end
end)

3 comments
Please provide script when you ask for help.
Ok, I put it on there.
Please give us the gamepass script or else we cannot help! if you don't have a script, you are probably asking for somebody to make a script for you, and that is not allowed. Thank you!