Prompt gamepass script:
local MS = game:GetService("MarketplaceService")
local plr = game.Players.LocalPlayer
Can someone help me solve this problem?
Note: Correct me if the topic or if something was wrong.
I think the issue is “plr.UserId” - for whatever reason, apparently PromptGamePassPurchase takes a player object and not their UserId.
If it still doesn’t work after changing “plr.UserId” to “plr” - I’d likely need to see more of the output to help. Let me know if that fixes it!
Don’t get the player’s user id, instead just get the player instance. The first parameter of the function is the player instance and not the user id