if receiptInfo.ProductId == id3 then
game.ReplicatedStorage.JumpScare:FireAllClients()
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end)
It’s because you’re defining MarketPlace.ProcessReceipt within a CharacterAdded event. Move it out of the PlayerAdded and CharacterAdded part of the code (below everything basically) and try it then.
local MarketPlace = game:GetService("MarketplaceService")
local id3 = 1567834438
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
end)
end)
MarketPlace.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == id3 then
game.ReplicatedStorage.JumpScare:FireAllClients()
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
What error do you get now? Nothing? Ensure you’re firing a PromptProductPurchase correctly in the GUI button you’re binding the functionality too. Also, might be worth breakpointing the code to see if it even reaches there.