function getPlayerFromId(j)for F,I in pairs(game.Players:GetPlayers())do if I.userId==j then return I end end end game.MarketplaceService.ProcessReceipt=function(j)local F=getPlayerFromId(j.PlayerId)if F~=nil then if j.ProductId==PRODUCT_ID then game.ServerStorage.ChangeRadio:Invoke(F)end end return Enum.ProductPurchaseDecision.PurchaseGranted end
--[[
Setting up the Super Radio is auctually really easy. 

Just move the Super Radio script to "game.ServerScriptService"

Next, go to your place''s profile page and click on "Configure Place"

Go to "Developer Products" and create a new product. Call it "Set Radio"

and set the price in robux to whatever you want. Uplaod an icon for it to.

Then, set "PRODUCT_ID" in Super Radio script to the product you just made.

Do you have any other developer products in your game? If not, set "PROCESS_RECEIPT"

to true. Otherwise, set it to false. If you have other developer products, go

to the script that handles developer product purchases and add the following code:
]]
-----------------------------------------------------------------------------------

function getPlayerFromId(id) -- Throw this in somewhere above your ProcessReceipt function
	for i, v in pairs(game.Players:GetPlayers()) do
		if v.userId == id then
			return v
		end
	end
end

game.MarketplaceService.ProcessReceipt = function(receiptInfo) -- Do not copy this part, this is where the code goes
	local player = getPlayerFromId(receiptInfo.PlayerId)
	if player ~= nil then
		if receiptInfo.ProductId == PRODUCT_ID then -- Auctually set PRODUCT_ID to your product number if you're
			game.ServerStorage.ChangeRadio:Invoke(player)
		end
	end

	return Enum.ProductPurchaseDecision.PurchaseGranted -- Make sure this is at the end of your ProcessReceipt Function
end
