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
![image](//devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/b/5/a/b/b5abaf7d618f53916f77734818e99c16f7e982f5.png)
![image](/secure-uploads/uploads/original/5X/d/d/f/0/ddf02404034eedfc460646c140eac79787291fdd.png)
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
![image](//devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/3/8/4/8/3848e479e5705d809130b5e5525edae2fa95ec1d.png)
![image](//devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/9/5/7/6/9576515f41c91f31d55a0614b510733baf5f0ceb.png)
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.