Simple.. I have a gamepass. Gamepass has ID. Gamepass ID is correct. Script takes Gamepass ID. Game says.. "No I don't like that gamepass. Instead I'm going to ask you to buy a model of a brick.". Please help.

So it does give me a gamepass prompt.. but it asks me to buy a weird model? What am I doing wrong?

local debounce = true
local GS = game:GetService("GamePassService")


script.Parent.MouseButton1Click:Connect(function()
	if not debounce then
		return
	end
	debounce = false
	

    game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, 4810701)
   

	
	wait(1)
	debounce = true
end)


Here is the gamepass: https://www.roblox.com/game-pass/4810701/2x-Speed

Please explain why it gives me a prompt to buy something other than my own gamepass?

4 comments

0

what script do you use? Local or normal?

0

Have you tried PromptGamePassPurchase? PromptPurchase is for assets and GP’s are no longer assets.

0

Oh uh this is in a local script

0

Ohhhh that makes sense ill try PromptGamePassPurchase then