I want to prompt a purchase of a DevProduct.
The prompt says “This Item Is Not Currently For Sale. Your Account Has Not Been Charged” Even though everything seems correct. The ID’s and the script.
I used “PromptPurchase” instead of “PromptGamepassPurchase”, I checked the ID’s, I tried creating the DevProduct directly in Roblox Studio, I’ve tried every solution I’ve found online.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local marketPlaceService = game:GetService("MarketplaceService")
local players = game:GetService("Players")
local part = workspace:WaitForChild("Prompter")
local id = 1833563548
part.Touched:Connect(function(hit)
print(id)
local plr = players:GetPlayerFromCharacter(hit.Parent)
if plr then
marketPlaceService:PromptPurchase(plr,id)
end
end)