Sorry if this is the wrong category, but is there a way to disable purchasing a gamepass outside of the game itself? Example, I want this kind of purchasing to be disabled:
But in game, I would be able to still click a button to purchase it there.
you can uncheck “for sale” in the settings by pressing the 3 dots.
Hope this helps.
I tried that, but then when I tried making it purchasable in game, it game me an error message telling me the item wasn’t for sale
oh yeah so you mean you want it to be able to buy in game, then you just have to change it to a developer product.
How do I make it a developer product?
yeah because you cannot buy developer products from that page
I’ve made the developer product, so now it can only be purchased in game, but I’m still getting an error message when it prompts the pass. Is it something I did or is this a Roblox thing?
did you reactivate the gamepass?
I think I might’ve found the issue. I don’t own the gamepass. I’m going to delete it and remake it.
1 Like
The developer product is separate from the game pass. You need to handle the request differently.
local DoubleJump = 19496197
local Player = game.Players.LocalPlayer
local MarketPlaceService = game:GetService("MarketplaceService")
script.Parent.MouseButton1Click:Connect(function()
MarketPlaceService:Prompt(Player, DoubleJump)
end)
Is it something wrong with the code?
If you’re using a developer product, you can’t prompt it on the client.
Then what should I do to prompt the purchase?
You need to handle the prompt on the server. Refer to the documentation for more details:
It said that developer products are one time purchases. I’m wanting to make my double jump pass be active for 20 in game minutes, then you have to buy it again to get more time. Do I have to make a gamepass for this?
No, I think you are misunderstanding. You need to handle the developer product purchase on the server, so that you know if the player bought it.
Okay, I’ll sift through the forums to see how I can get that done