.PromptProductPurchaseFinished not firing

Whenever I buy something in studio, .PromptProductPurchaseFinished does not fire after the purchase.
Script:

MarketplaceService.PromptProductPurchaseFinished:Connect(function(UserId, ProductId, Purchased)
	print("bought")
	if Purchased == true then
		local plr = game:GetService("Players"):GetPlayerByUserId(UserId)

		local AssetId = MarketplaceService:GetProductInfo(ProductId)

		if AssetId == 34 then
			print("Gamepass Bought by"..plr.Name)
		end
	end
end)

well… how about we see your code?

Oh sorry! I forgot here’s the code for it.

MarketplaceService.PromptProductPurchaseFinished:Connect(function(UserId, ProductId, Purchased)
	print("bought")
	if Purchased == true then
		local plr = game:GetService("Players"):GetPlayerByUserId(UserId)

		local AssetId = MarketplaceService:GetProductInfo(ProductId)

		if AssetId == 34 then
			print("Gamepass Bought by"..plr.Name)
		end
	end
end)

Let me just tell you that PromptProductPuchaseFinished checks for developer product purchases, not gamepasses.

You are buying a gamepass or a developer product?

If you buying a gamepass you need to use the signal PromptGamePassPurchaseFinished.