Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make something happen after purchasing a Developer Product?

I am new to Developer Products and I looked up on ROBLOX wiki how to sell developer products and I successfully created my own Developer Product script with the example given on the wiki but...it fails to explain how to make something happen like give someone something after the purchase.

How do I accomplish this?

My code:

local Market = game:GetService('MarketplaceService')
local Ticket = 36931483

script.Parent.Touched:connect(function(plr)
	if plr.Parent:FindFirstChild('Humanoid') ~= nil then
		local player = game.Players:GetPlayerFromCharacter(plr.Parent)
		Market:PromptProductPurchase(player, Ticket)
	else
		--nothing
	end
end)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.