--	local player = Players.LocalPlayer -- локальный игрок

	-- print("Develop 1")
	game:GetService("MarketplaceService"):PromptProductPurchase(localPlayer,id) -- выполнение запроса покупки	
	-- print("Develop 2")
end)

while true do
	wait()
	dev = plr:FindFirstChild("Develop")
	if dev ~= nil then
		-- warn(dev," found")
		local id=script.Name
		tmp = dev:FindFirstChild(id)
		if tmp ~= nil then
			-- warn(tmp," found")
			act=script.Parent.Activat
			osTime= os.time()
			-- warn("====>>>>",osTime,"{}",tmp.Value)
			if osTime > tmp.Value then
				act.Text = "not active"
				act.TextColor3 = Color3.fromRGB(127,127,127)
			else
				tt= tmp.Value-osTime
				mm = math.floor(tt/60)
				if mm < 10 then
					mm = "0" .. tostring(mm)
				else
					mm = tostring(mm)
				end
				ss = math.fmod(tt,60)
				if ss < 10 then
					ss = "0" .. tostring(ss)
				else
					ss = tostring(ss)
				end
				act.Text = "Activated [" .. mm .. ":" .. ss  .. "]"
				act.TextColor3 = Color3.fromRGB(255,127,0)
			end
		end
	end
end
