Basically, I have a crate developer product, once bought for the first time it works fine. The second time, it doesn't make the frame and button visible. Can someone help me figure out why?

	local MarketplaceService = game:GetService("MarketplaceService")
	local DataStore2 = require(script.Parent:WaitForChild("MainModule"))
	local pid1 = 703927122
	local pid2 = 703927252
	local pid3 = 703927369
	local pid4 = 703927502
	local pid5 = 715997494
		
	
	MarketplaceService.ProcessReceipt = function(receiptInfo) 
		
		for i, player in ipairs(game.Players:GetChildren()) do
			if player.UserId == receiptInfo.PlayerId then
			-- More code here but it works fine --

			elseif receiptInfo.ProductId == pid5 then				
				wait(2)
				player.PlayerGui.CrateGui.ActivateSpinner.Visible = true
				player.PlayerGui.CrateGui.ActivateSpinner.Spin.Visible = true								
				end
			end
		end

2 comments

0

Im little confused here, are those pid's gamepasses?

0

No, they are developer products