I am working on a script in ServerScriptStorage that gives you skips but PromptPurchaseFinished does not detect anything happening. I have the prompt for the developer product be given by a local script in the player gui as you buy the skips from a player gui. Here is my script in ServerScriptService.
SkipGampess = {{1022226653, 5}, {1022246676, 10}, {1022248516, 25}, {1022247497, 50}, {1022247956, 100}}
game:GetService("MarketplaceService").PromptPurchaseFinished:Connect(function(plrId, productId, purchased)
print("PurchaseDetected")
if purchased then
print("WasPurchsaed")
for i, v in pairs(SkipGampess) do
if SkipGampess[1] == productId then
for a, b in pairs(game:GetService("Players"):GetChildren()) do
if b.userId == plrId then
v:WaitForChild("playerVariables"):WaitForChild("Skips").Value = v:WaitForChild("playerVariables"):WaitForChild("Skips").Value + v[2]
end
end
end
end
end
end)

1 comment
Its a developer product. NOT A GAMEPASS