Purchase Developer product for a new character skin

Hello!

I have a project creating a product purchase thann whenever i make a purchase it should replace the default avatar with a custom one but it turns out not to be working, here is the script and you can review it

Localscript inside of the textbutton:

When i tried making a test purchase it turn out not to be changing
i used printing methods, and it print out but the character doesn’t changed at all here is the video:
robloxapp-20240305-1910596.wmv (442.9 KB)

My apologies for the poor quality of the video

Developer products do not fire with PromptProductPurchaseFinished, instead you should handle them with the ProcessReceipt callback. Take a look at the document below.

If you use processReceipt on the serverside

MPS.processReceipt = function(ReceiptInfo)

if ReceiptInfo.PurchaseId == ID then

local Player = game:GetService("Players"):GetPlayerFromId(ReceiptInfo.PlayerId)

local NewCharacter = e12:Clone()
NewCharacter.Name = Player.Name
Player.Character = NewCharacter
end
end

They do work, I’ve used them before.

Thank you all for the awesome response, I’ll look afterwards!

Ah, okay. That is new for me then.

1 Like

Let us know when you need help if it doesn’t work.