INSIDE A SERVER SCRIPT
This is suppose to run when a player is prompted a devproduct purchase in a local script, but it automatically just runs right when you get into the game even if you haven't bought it.
local productId = 47411842
market.ProcessReceipt = function(stuff)
for i, player in ipairs(game.Players:GetPlayers()) do
if player.userId == stuff.PlayerId then
if stuff.ProductId == productId then
events.songBought:FireClient(player)
end
end
end
end

1 comment
Also if you don't include that line, you won't get the money from the product