This item is not currently for sale

i have been searching a lot but i didnt find…

i am developing a game( https://www.roblox.com/games/3421928854/Simulator-Tests ) wich contains in-game exclusive items for anyone wich bought gamepasses.
but when u will buy the gamepass in-game(not on game page) it doesnt work it pop ups a message “This item is not currently for sale” here goes the script:

local productId = script.Parent.GamePassID.Value – change to your Gamepass product ID

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function() --DONT CHANGE THIS

game:GetService(“MarketplaceService”):PromptPurchase(player, productId)

end)

5 Likes

Hello there, check if the value that is called GamePassID value’s is the same as the gamepass you created!!
Edit: Please make me the solution to this answer by giving me a tick!

3 Likes

You need to change it to: game:GetService(“MarketplaceService”):PromptGamePassPurchase(player, productId)

I recommend not using free model scripts.

9 Likes

it is the same gamepass id exatcly id in value

Change it to:

local productId = script.Parent.GamePassID.Value – change to your Gamepass product ID

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function() --DONT CHANGE THIS

game:GetService(“MarketplaceService”):PromptGamePassPurchase(player, productId)
end)

4 Likes

was going to say the same thing xD I thought he was talking about a micro transaction developer product, I didn’t notice that he is talking about a gamepass!

1 Like

your last coment has solved dis topic :slight_smile: thnxs

2 Likes