im trying to have it print stuff once someone buys the product but it doesn't, it prints "test" but it doesn't print "test2"
function onClicked(Clicker)
game.Workspace.Sfx.Click:Play()
local MarketplaceService = game:GetService("MarketplaceService")
game.MarketplaceService:PromptProductPurchase(script.Parent.Parent, assetId)
print("test")
MarketplaceService.PromptPurchaseFinished:Connect(function(player, assetId, isPurchased)
print("test2")
if isPurchased then
print(player.Name .. " bought an item with AssetID: " .. assetId)
else
print(player.Name .. " didn't buy an item with AssetID: " .. assetId)
end
end)
end
game.Workspace.Buttons.CreditsPlate.R10.ClickDetector.MouseClick:Connect(onClicked)
when i bought it i got an error that said something like
Image (image link) failed to load in CoreGui.PurchasePromptApp.PurchasePromptUI.PromptContents.PromptBody.ProductionInfo.ItemPreviewImage.ItemPreviewImageContainer.ItemImage.Image: Failed to resolve texture format 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "

3 comments
well that means you didn't finish the purchase
does it not work in studio?
when i bought it i got an error that said " Image (image link) failed to load in CoreGui.PurchasePromptApp.PurchasePromptUI.PromptContents.PromptBody.ProductionInfo.ItemPreviewImage.ItemPreviewImageContainer.ItemImage.Image: Failed to resolve texture format 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "