why does my script dont work ?

local MarketplaceService = game:GetService("MarketplaceService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local productID = 1069575853

local function processReceipt(receiptInfo)
		
	local player = players:GetPlayerByUserId(receiptInfo.PlayerID)
	if not player then
		return Enum.ProductPurchaseDecision.NotProcessedYet
	end

	if player then
		local PlayerGUI = player.PlayerGui
		local BalloonGui = game.ReplicatedStorage.GUI.DevProducts.BalloonGUI
		BalloonGui.Parent = PlayerGUI
	end

	return Enum.ProductPurchaseDecision.PurchaseGranted

end

MarketplaceService.ProcessReceipt = processReceipt()

6 comments

0

handing a bunch of these out today: https://idownvotedbecau.se/unclear

0

i edited it

0

that doesn't help

0

that doesn't help

0

What's the error?

0

I can purchase the dev product but the gui does not open