MoonScro
(MoonScro)
#1
When I try to buy a gamepass, It says “this item is not currently for sale”
I also tried with alt. but its not working
five.MouseButton1Click:Connect(function()
local ItemID = 243022135
local MarketplaceService = game.MarketplaceService
MarketplaceService:PromptPurchase(game.Players.LocalPlayer, ItemID)
end)
2 Likes
netpwn
(netpwn)
#2
Use MarketplaceService.PromptGamePassPurchase instead
4 Likes
MoonScro
(MoonScro)
#3
Then the roblox purchase button is not even appearing
1 Like
Dev_Sie
(Sie)
#4
you can’t use PromptPurchase on gamepasses (you can only use it on dev products), show the updated code
Kyl3ST
(Kyl3ST)
#5
have you even verified if that gamepass has sell enabled on the dev portal?
MoonScro
(MoonScro)
#6
I also changed it for dev product, but it still happens
@MoonScro
He is right, have you checked if it is actually for sale?
It should be not for sale. Check if it’s for sale.
MoonScro
(MoonScro)
#9
there are no any setting for make it onsale dev product
U already put a price, which is 80 robux. Hit " Save Changes " and try purchasing the devproduct in ur game, it should work!
1 Like
MoonScro
(MoonScro)
#11
five.MouseButton1Click:Connect(function()
local ItemID = 1625492885
local MarketplaceService = game.MarketplaceService
MarketplaceService:PromptPurchase(game.Players.LocalPlayer, ItemID)
end)
It still says “This item is not currently for sale”
That’s weird. It’s probably your script that doesn’t work, tho I think it should work.
Let me test your script and see if it’ll work or not.
1 Like
MoonScro
(MoonScro)
#13
I changed “PromptPurchase” to “PromptProductPurchase” and it works now . Thanks for help
system
(system)
Closed
#15
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.