Code:

``local MPS = game:GetService("MarketplaceService")
MPS.ProcessReceipt = function(receiptInfo)
	if receiptInfo.ProductId == 1052512510 then
		local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
		local player_name = player.DisplayName``
		local ws_player = workspace:FindFirstChild(player_name)
		ws_player:SetPrimaryPartCFrame(script.Parent.Parent.Parent.Workspace.RankGiverPads.Model1.TouchPart.CFrame + Vector3.new(0,5,0))
		return Enum.ProductPurchaseDecision.PurchaseGranted
	end
end``

2 comments

0

Where are you prompting the product purchase?

0

a GUI