Why does the purchase prompt say "this item is not currently for sale"

So I am using a tycoon kit called Zeds tycoon kit, I am trying to make a gamepass button that will allow you to purchase a special robux only dropper. Whenever I test out the button, a prompt pops up that says “Item is not currently for sale” And the gamepass is already on sale, so I’m a bit confused.

Here’s a video to show what’s happening.

If anybody can help me fix this please let me know.

1 Like

I think it’s because the item is already in your inventory, check that it works using another gamepass that is not in your inventory.

1 Like

Nope, that’s not it. I deleted it from my inventory and tested and the same thing happens.

Did you change the script that prompts the purchase? Like the ID of the gamepass?


Oops, I know what the problem is xd
Check that this is activated in your gamepass.

I checked okay? It’s for sale, and there is no reason it shouldn’t work.

Perhaps the example ID did not change it or is incorrect, the script that should be in the model should be something like this:

local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local GamePassId = 0
    if Players:GetPlayerFromCharacter(hit.Parent) then
        local Player = Players:GetPlayerFromCharacter(hit.Parent)

    -- Code --
1 Like

Make sure you are prompting the purchase of the correct gamepass, the ID might be incorrect.

1 Like

Anyways where do I put that code?

In the part that it touches, make sure it is anchored and replace this with its id.

Alright, but I mean I am using a tycoon kit. So what script would I put that in?

Are Third Party Sales enabled in your Game Settings?

I just enabled them, and it seems to still say “item not currently for sale”

Have you tried in the main game? Is this only occuring in studio?

This happens in the main game as well.

1 Like

Can you send the actual script itself and the AssetID?

You may have a typo in there.

What script would you like me to send, (again I’m using a tycoon kit) do I sent the purchase handler script?

The one inside of the button; the one that you step on for the gamepass in particular.

This is what the inside of the gamepass button looks like

Send the snippet of code which handles the purchase and click.
By the way: Have you checked the output? Has it said anything?