So I am adding gamepasses to my game right now and I think I have configured the code correctly. However, when I go to test in the game with Player1 and Player2 using the test feature in studio and try to purchase the gamepass, Studio says:
I am very confused and also slightly concerned. I am 100% sure the code that I have routes to my own passID. However, maybe its possible my game has malware (although i doubt it as I can code and have looked through every script in the game). I have also made all the buttons and stuff myself so idk how that would even be possible.
Is this a common bug or am I missing something big? Thanks
The thing with that is I can only test as myself if I do that. I need to test as Player1 or Player2 in order to actually see if the purchase works. Since I made the passes, when I join on my main account I already own all of them so it does not let me purchase them.
To anybody in the future wondering what the issue was. It was as simple as indexing a list incorrectly. I was placing the game id of the item (the system I use to keep track of dev products) instead of the product id into it. It was a simple indexing error. I apologize for not realizing this sooner. I guess I was too confident in my code and assumed it was a roblox issue