local plr = game.Players.LocalPlayer
local mps = game:GetService("MarketplaceService")
local id = 1301857815
script.Parent.MouseButton1Click:Connect(function()
mps:PromptProductPurchase(plr.UserId, id)
mps.PromptGamePassPurchaseFinished:Connect(function(plr, id, purchased)
if purchased then
print("purchased")
end
end)
end)
local plr = game.Players.LocalPlayer
local mps = game:GetService("MarketplaceService")
local id = 1301857815
script.Parent.MouseButton1Click:Connect(function()
mps:PromptProductPurchase(plr.UserId, id)
end)
mps.PromptGamePassPurchaseFinished:Connect(function(plr, productid, purchased)
if purchased and productid == id then
print("purchased")
end
end)
You are using a PromptGamePassPurchaseFinished for a dev product wich is wrong. (Since PromptGamePassPurchase works only for gamepass) Not for dev product